LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

IMAQ to RGB matrix

Solved!
Go to solution

Hello!

 

Is there a utility in IMAQ to transform an IMAQ image.ctl from a video stream to a RGB matrix (480x640x8)?

 

Thanks in advance.

0 Kudos
Message 1 of 11
(4,227 Views)

I tried with IMAQ ImageToArray but it doesn't work 😞

 

 

0 Kudos
Message 2 of 11
(4,221 Views)
Hi want more information . try to be elaborate
0 Kudos
Message 3 of 11
(4,210 Views)

The function called IMAQ Color Image to Array should do the trick.  I don't know why you are having problems.  Do you have the Vision Development module activated?  Otherwise, you may not have access to this vi.

0 Kudos
Message 4 of 11
(4,205 Views)

Hello.

 

I'm gonna check it out 

 

thanks.

0 Kudos
Message 5 of 11
(4,193 Views)

Hello, 

 

I have the NI Vision Development module activated. The error I receive is the "1074396080 Invalid image type". I checked on the forum and I found this:

 

http://forums.ni.com/t5/Machine-Vision/error-1074396080-Invalid-image-type/td-p/303505

 

But I don't know if its the same problem.

 

 

0 Kudos
Message 6 of 11
(4,172 Views)

Away from a PC that has LabVIEW.  Will look at it when I get back at the office, but I would guess that your error message is an indication of the root cause.

0 Kudos
Message 7 of 11
(4,144 Views)

Ok, 

 

thanks and happy holidays.

0 Kudos
Message 8 of 11
(4,125 Views)

I know it is 14th January but... Happy new year everybody 🙂

 

I'm still stuck at the same point and I've found some threads talking about an "ImageToArray.vi" example, probably this one:

http://zone.ni.com/devzone/cda/epd/p/id/5679

 

I cannot find it in my Labview examples, anyone could share it or suggest any other way to solve this?

 

Thanks in advance.

0 Kudos
Message 9 of 11
(4,080 Views)
Solution
Accepted by topic author pakopon

Is this the sort of thing you are after?

(obviously this isnt from a video stream, this is just a nice easy way to mock up the idea)

img to array.png

 

Your 'invalid image type' error can be solved by defining the image type as RGB, rather than the default Grayscale (see bottom left of above snippet)

 

0 Kudos
Message 10 of 11
(4,077 Views)