Question

How to convert a 128x128 or 256x256 grayscale image into a binary bitsream in mat lab?

How to convert a 128x128 or 256x256 grayscale image into a binary bitsream in mat lab?

Homework Answers

Answer #1

BW = im2bw(I, level) converts the grayscale image I to a binary image. The output image BW replaces all pixels in the input image with luminance greater than level with the value 1 (white) and replaces all other pixels with the value 0 (black). Specify level in the range [0,1]. This range is relative to the signal levels possible for the image's class. Therefore, a level value of 0.5 is midway between black and white, regardless of class. To compute the level argument, you can use the function graythresh. If you do not specify level, im2bw uses the value 0.5.

BW = im2bw(X, map, level) converts the indexed image X with colormap map to a binary image.

BW = im2bw(RGB, level) converts the truecolor image RGB to a binary image.

If the input image is not a grayscale image, im2bw converts the input image to grayscale, and then converts this grayscale image to binary by thresholding.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Convert 0xD1 (hexadecimal) to binary and to decimal Convert 0b11001001 (binary) to hex and to decimal
Convert 0xD1 (hexadecimal) to binary and to decimal Convert 0b11001001 (binary) to hex and to decimal
Convert to binary a) Convert 28910 to binary using subtraction or division remainder. Show your work....
Convert to binary a) Convert 28910 to binary using subtraction or division remainder. Show your work. b) Convert BF16 to binary. Show your work
Convert D3B.C16 to binary
Convert D3B.C16 to binary
A)How do you convert 1/3 into binary with detailed steps ? B) Also how do you...
A)How do you convert 1/3 into binary with detailed steps ? B) Also how do you convert from repeating binary into decimal. (0.0110011001100110....0110) in base 2 . Assume 0110 patters go to forever. how can we convert it into decimal.
1. Show how you would do the following sum in binary (make sure to convert to...
1. Show how you would do the following sum in binary (make sure to convert to binary first and give the result in both binary and base 10): 63+125 2. How many binary sequences are there of length n? 3. What is two’s complement and why is it used?
1. convert the following value 374(base 8) to binary 2. convert the following value 0110101111111001 in...
1. convert the following value 374(base 8) to binary 2. convert the following value 0110101111111001 in binary to hexadecimal
convert 37.2410 into octal,binary and hexadecimal number
convert 37.2410 into octal,binary and hexadecimal number
Can someone create a MAT lab text to speech code that will say the letters as...
Can someone create a MAT lab text to speech code that will say the letters as the user types it. Please type it out.
plot use mat lab -5<n<5 x1[n] =u[n-2]
plot use mat lab -5<n<5 x1[n] =u[n-2]
​​​​​ Using binary numbers of 8 bits each, convert to binary and solve the following arithmetic...
​​​​​ Using binary numbers of 8 bits each, convert to binary and solve the following arithmetic operations using two’s complement representation: (10 points)                   a) (48)10 - (13)10           b) (-18)10 + (-13)10  
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT