05-12-2009 07:56 AM
Dear All,
I have a question about VISION.
An Image getting from IMAQ USB Grab Acquire.vi is 32bit, although the IMAQ Creat.vi is set U8 type.
But the most IMAQ vi (such as IMAQ Get LCD ROI.vi)can only deal with the Image of 8bit.
How to change the 32bit Image to the 8bit Image?
Thank you!
Hugo
Solved! Go to Solution.
05-13-2009 04:06 AM
Hi Hugo,
Are you using a color camera? coz 32bit usually for color image.
If so, you can try the Extract Single Color Pane.vi to extract its Luminance pane. Then it will became a 8-bit grey image.
NI AE Zheng
05-13-2009 04:30 AM
Thank you for your reply.
I am using a color webcam.
Is there any other way to change the 32bit color Image to the 8bit Image?
I have another question, in the Image recognition vi , does it at first change the Image to the grey type, and then to recognize it?
What I have done is to save the 32bit Image to file, read the file as 8bit type , then to recognize it, that I think it is not a good way.
Thanks.
Hugo
05-13-2009 05:04 AM
11-12-2009 03:12 PM - edited 11-12-2009 03:12 PM
I kindly have same problem now. I try to use camera to get image and then use it directly. I mean if I don't need save it and read it again. If I do need save it and read it. I also try that. It doesn't work for me. How can you resolve it?
For me, I use it to get braiding point position and control motion by pattern matching. Can you help me see the problem in my code? Thank you a lot.
12-22-2013 03:41 PM
The appropriate apologies, because it is a topic with a little old, starting to work with this vision is a basic step to take for further image processing.
So as mentioned you should use the function IMAQ ExtracSingleColorPlane, specifically developed a sample-8Bits RGB conversion, so that someone who starts to exploit