LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to change the Image(32bit) to the Image(8bit)?

Solved!
Go to solution

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

0 Kudos
Message 1 of 6
(5,505 Views)
Solution
Accepted by topic author hugoliang

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

Message 2 of 6
(5,486 Views)

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 

0 Kudos
Message 3 of 6
(5,482 Views)
Yes, many functions such as pattern match and edge detection can only deal with grey image. 
Message 4 of 6
(5,477 Views)

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.

Message Edited by guangli on 11-12-2009 03:12 PM
Download All
0 Kudos
Message 5 of 6
(5,226 Views)

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.

 

6.png

 

So as mentioned you should use the function IMAQ ExtracSingleColorPlane, specifically developed a sample-8Bits RGB conversion, so that someone who starts to exploit

0 Kudos
Message 6 of 6
(4,270 Views)