LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to display a u16 grayscale image on a u32 RGB format

Hello, 

 

I am currently trying to overlay a u32 RGB image on a u16 grayscale 2D array acquired from a CCD camera. I  order for it to work, we converted the u16 grayscale array into an array of u8 values. Afterwards, this byte was copied into the three bytes corresponding to R, G, B of a u32 RGB image. this allowed us to display the image in grayscale with the overlay in color. However, when we used a LCTF with the camera, there is too much attenuation and we can only see a black image. Probably because the intensity is too low on a sclae of 0-255. 

 

Here are the images of how we transformed the grayscale into RGB. Does anybody see the problem here?

 

 

Download All
0 Kudos
Message 1 of 2
(2,753 Views)

It seems more likely that your problem is the conversion from U16 to U8, which is not in the image you posted. Have you tried displayiing just the U8 image to see if you lost data in that conversion?

 

Lynn

0 Kudos
Message 2 of 2
(2,737 Views)