LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

BCG Lookup.vi and 16 bits images

Hello,

 

I am building a VI to control the camera of a microscope, and I need to apply a BCG (Brightness/Contrast/Gamma) correction to the image in real time to be able to detect objects. I made a simple test VI with the IMAQ BCG Lookup.vi provided with NI Vision, which worked perfectly as long as I kept my camera with a 8-bit depth. But as soon as I turned my camera in its proper 16 -bits unsigned mode - which is the one of interest for us - the BCG Lookup.vi would not work anymore and returned me the Error 1074396080, described as Invalide image type.

 

I tried to look on the NI forum for help, but all I could find is this old thread which is not marked as resolved and suggest using an array to overcome the issue. The documentation on the IMAQ BCG Lookup.vi does not specify that the subVI only works with 8-bit images, so I would like to know if there was a way to use this subVI directly with 16 bits images.

 

Best

0 Kudos
Message 1 of 3
(2,305 Views)
0 Kudos
Message 2 of 3
(2,265 Views)

Hi Joelle,

 

Thank you for the suggestions. I have already tried the 1st article in two different ways: (1) sending a 16-bit picture (either signed or unsigned) casted into the same type of picture (16-bit) into the IMAQ BCG Lookup.vi, or even (2) sending a 8-bit picture casted into a 16-bit (either signer or unsigned) into the same VI. Unfortunately, both returned the same error code.

 

The 2nd article is not really relevant here because I do not save the picture (for the moment), I am just displaying it live while grabing the signal. The last article discuss about color image, but I am using a monochrome camera (Photonfocus).

 

Regards,

Vivien


 


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