LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Adjust Brightness Contrast Gamma Grayscale IMAQ

Hi All,

 

I'm trying to use the IMAQ image display to adjust the BCG values of an acquired U16 image.  In searching for a solution, the IMAQ BCGLookup and the Image Operators (+,-,*,/) seem like the preferred approach in LabVIEW.

 

Can BCGLookup do this alone? I've attached an image of my attempt at adjusting BCG using this function. Here, I get an error specifying "IMAQ Vision: Ivalid Image Type"

 

I resorted to the above approach after failing use the image operators, the screen shot of this is also attached.  At least with the one configuration of this attempt, I do not get an error, but the adjusted image fails to display.

 

I appreciate any advise or input anyone might be able to offer.

 

Thanks!!

 

 

 

 

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

Greetings, 

 

The IMAQBCGLookup seems to be indeed the way to go for your application. 

 

From looking at the images you have posted, is there a reason as to why we are not using a secondary memory location for the modified image? 

 

After quickly looking through the BCGLookup documentation, it would seem that the supported image for the function would be U8. As such, while the BCG Lookup Example.VI in the example finder might be informative, I do not know if it might be too useful. 

 

I have looked around a bit and have found, in the following article, an example that deals with 16bit images, give it a try and let me know if that helps!

http://zone.ni.com/devzone/cda/epd/p/id/3731#1requirements

 

I wish you a great day!

 

Cordially;

 

Simon P.

National Instruments
Applications Engineer
0 Kudos
Message 2 of 2
(5,410 Views)