Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Converting a Signed 16 bit colour Image to 32 bit Image without Losing the Colour

Hi,

 

I am using the IMAQColourHistogram which only accepts 32 bit image inputs. I changed the Image from 16 bit to 32 bit using 'Cast Image'. The program worked but inserting an indicator, I realised that the Cast Image actually changes the Color in the image to a black and white Image. Is there a way I can change the 16 bit to 32 bit without losing the colour. 

Any suggestions on this would be very helpful as I am currently stuck in my project.

 

Thanks.

0 Kudos
Message 1 of 2
(3,629 Views)

Hi,

Is your 16bit image a real color image or only a grayscale image with a false color palette?

If your image is only a grayscale image, simply use the IMAQHistogram function  (located in the Analysis palette) wich accepts 8 and 16bit images.

 

Color images are 32bit because you have 3 planes of 8 bit (Red, Green, Blue)

16bit are not usually color images, but grayscale image with extended pixel depth compared ti traditionnal 8bit images.

 

Regards

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