LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you flatten an 8 bit pixmap with a black and white color array

I am using an Image to array sub vi to get an 8 bit pixmap of an image. This image is in black and white. I am not able to use the IMAQ write bmp subvi, but I want to save the image in black and white. I am currently trying to use the flatten pixmap vi and then the write BMP file vi however this gives an image in random colors. I gave the color array input to the flatten pixmap VI a 1D array with 256 entries from 0 to 255 and it gives a nice image but it is black and blue. How do I do this but make it black and white?
0 Kudos
Message 1 of 2
(3,372 Views)

Hi futuramaar,

you should be able to get the expected image if you create an array of your image where you have three values from your normal image. You need RGB and you have only one of them, so expand your array to 24bit. If you have a 24bit image, then you don't need a color table.

See the attached image.

 

Mike

0 Kudos
Message 2 of 2
(3,369 Views)