LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Converting 12-bit or 16 bit image to an unflattened pixmap

I have a 12 bit grey scale image that I get from a ccd camera. I know how to convert it to 16 bits, but how can I use the unflatten pixmap.vi to convert the 16 bit image into a 16 bit picture. What kind of color table do I have to supply it. Right now it is giving me a wierd all blue hue when I don't supply a color table.
0 Kudos
Message 1 of 6
(4,597 Views)
16 bit image is not supported. Convert to 24 bit instead.
Then you can draw it on picture control. No color table
is needed for 16, 24, or 32 bit image.

George Zou
http://gtoolbox.yeah.net
George Zou
0 Kudos
Message 2 of 6
(4,597 Views)
I thought 16 bit grey scale images are supported. If I convert to 24 bits, would the image still remain grey scale.
0 Kudos
Message 3 of 6
(4,598 Views)
No. 16 bit is not supported.
Actuall, you should convert 12 bit grey to 8 bit gray. By definition, a grey scale image means that the red, blue and green component are equal for every pixel. A grey scale image has only 256 levels: 0x000000, 0x010101, ..., 0xFFFFFF. 8 bit (array) is enough to describ to image. The above 256 level can be used as color table.
You sure can convert your 12 bit to 24 bit. As long as the 3 color component are equal for every pixel, you will get a grey image. This way might be easier.

George Zou
http://gtoolbox.yeah.net
George Zou
0 Kudos
Message 4 of 6
(4,597 Views)
8 bit images only provide 256 levels of separation for your images. This is definitely lower in resolution than 16 bit images. I have had occasions where I needed the 4096 levels to improve my dataset.
0 Kudos
Message 5 of 6
(4,307 Views)
ivanlum,
You just answered a 3-year old post. 😉
George Zou
0 Kudos
Message 6 of 6
(4,299 Views)