Tags: binary, bmp, convert, form, image, intensities, matlab, programming, radix-2

how to convert bmp image to binary and also how to do RADIX-2

On Programmer » Matlab

1,100 words with 1 Comments; publish: Sat, 26 Apr 2008 22:04:00 GMT; (20093.75, « »)

I have an image called image.bmp.

How could I convert the image intensities to binary form.

Also, does anyone know how I could use radix-2 representation method

for median filtering for that image to reduce noise. The dimension of

the image is 256x256. for the radix-2 representation, neighbourhood

of size 3x3 should be considered.

Thank you

All Comments

Leave a comment...

  • 1 Comments
    • In article <ef55800.-1.matlab.questionfor.info.webcrossing.raydaftYaTP>,

      John <fancy_59.matlab.questionfor.info.hotmail.com> wrote:

      >I have an image called image.bmp.

      >How could I convert the image intensities to binary form.

      If it is a grayscale image, the intensities are already in binary

      form.

      If it is an RGB or indexed image, convert it to a grayscale

      image, using rgb2gray() or ind2gray().

      Perhaps by 'binary form', you mean black and white? If so, then

      bwimage = 256 * (grayscaleimage >= 128)

      (This might perhaps have to be adjusted if the data class of

      grayscaleimage is not unit8)

      --

      All is vanity. -- Ecclesiastes

      #1; Sat, 26 Apr 2008 22:05:00 GMT