05-07-2011 01:22 PM
I am using the trial version of LabView Pro and Vision Builder to process a video taking from a Microsoft Webcam. I try to apply some of processing function like Filter or viewing Histogram Graph like below but LabView always return Invalid image type. I guess these functions cannot process the image directly from webcam (using Vision Acquistion) and might need to be converted before processing. However, I am unable to do so. Please give me some suggestion or provide which function I should use
Solved! Go to Solution.
05-07-2011 03:03 PM
In most cases WebCam will deliver RGB (Color) Image. Even if you have switched WebCam to GrayScale Mode (then RGB components are equal). IMAQ Histograph can handle the only U8 U16 I 16 or SGL types.
What you can do:
A) Use IMAQ ColorHistograph instead of IMAQ Histograph.
or
B) Convert your color image to grayscale (correct way is to take IMAQ ExtractSingleColorPlane and set type to Intensity. Destination image should have type Grayscale U8). Then you will be able to use IMAQ Histograph.
Andrey.
05-07-2011 05:00 PM
Thank you very much, problem was solved.
One small question when I use IMAQ ExtractSingleColorPlane, it turns all image out, even the one that is connected directly to Vision Acquisition to grayscale. However, I would like to have one imageout displays color, one displays grayscale instead of two display grayscale.
05-09-2011 06:26 PM
Right click on the image indictor on the front panel and select snapshot.