Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

New to imaging, How to get colors right

Hi I using basler piA2400-12gc GIGE camera to acquire image of a backlit object, I have played with Gamma, Exposure, Gain,  and White balance but am not able to get the colors right. If I open the image acquired through labview with windows live photo gallery and tell it to auto fix I get image colors right. How can get the images with right colors from labview itself. thanks

 

 

From Labview:

19531i085F484F4BD35253

 

 

 

Corrected with Windows live photo gallery

 

19533iCB1258F1D5081596

0 Kudos
Message 1 of 8
(4,020 Views)

To get your image exactly right, you need to set up the camera to send back the raw bayer image, then do the color correction on the raw image.  This way, you can adjust the level of each color plane, and there is even an auto color correction that should make it easy.

 

Bruce

Bruce Ammons
Ammons Engineering
0 Kudos
Message 2 of 8
(4,001 Views)

How do I get raw bayer image from the camera? I also could not locate the auto color correction vi or utility

 

thanks

0 Kudos
Message 3 of 8
(3,987 Views)

It is all in MAX under the Color tab.

 

Bruce

Bruce Ammons
Ammons Engineering
0 Kudos
Message 4 of 8
(3,979 Views)

can I access these from  with in labview?

0 Kudos
Message 5 of 8
(3,956 Views)

You can access the Bayer gain through LabVIEW using a Property Node connected to the dx session, (Acquisition Attribute>>Bayer), and the camera attributes with 2 VIs (IMAQdx Read Attributes and IMAQdx Write Attributes), located in the Low level sub-palette.

But I would recommend trying the white balance again. How did you proceed when you tried this feature?

 

-Christophe

0 Kudos
Message 6 of 8
(3,953 Views)

Still fighting the color issue. If I use the bayer BG for the pixel format the picture is very pixelated. I am using yuv422 packed. When I use the yuv422, all the items in the bayer tab are greyed out so can not the white blalance.

 

Is there a way to adjust the color temperature , and tint and saturation, because thats what windows live gallery is adjusting when I tell it to auto correct 

0 Kudos
Message 7 of 8
(3,877 Views)
0 Kudos
Message 8 of 8
(3,865 Views)