02-09-2014 02:18 PM
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?
02-09-2014 03:13 PM
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