Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Plaid pattern in grayscale images

Okay, I'm taking a sequence of images with a camera using IMAQ/Labview. The camera is obviously taking color images because the software that came with it works. When I create my sequence of images in Labview I get grayscale images (in JPG, PNG and TIFF) with a black plaid pattern that changes if I zoom in or out (in photoshop). I know that without a color palette I will get grayscale. My question is, do you think that the plaid pattern has something to do with how IMAQ create is dealing with the incoming image from the camera? I have tried to apply a color palette with no luck.



-Shane
0 Kudos
Message 1 of 3
(3,150 Views)
Hi
I am guessing that your camera has a bayer filter to make it colour. Try using the example 'Snap with Bayer Decoding' in the folder C:\Program Files\National Instruments\LabVIEW 8.2\examples\IMAQ\IMAQ Color.llb. The colours may look slightly wrong, but this will be due to one of two things.
1) The bayer pattern you have chosen is wrong. Try taking an image of something with red, green and blue to make this more obvious. The manual for your camera should contain the correct bayer pattern.
2) You would need to white balance the camera. You can do this in MAX and take note of the values it provides for your LabVIEW code.

Hope that helps
Mike
0 Kudos
Message 2 of 3
(3,139 Views)
Thankyou
0 Kudos
Message 3 of 3
(3,129 Views)