Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert a RGB Imaq image to an array

Hi
 
I´m using Lab View 8.0 and Imaq 3.0. I have a 32-bit RGB Imaq image from my camera.
I need the RGB value from each pixel of this image. To get the pixel value I want to convert the image into a 2D-array without vision.
I tried to do this with "ImageToArray" vi but I get an error: Invalid image type.
Perhaps you find a better solution, without convert the image into an array.
 
Could you help me?
--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 1 of 4
(6,630 Views)
"IMAQ ImageToArray" does not work with RGB images.
"IMAQ ColorImageToArray" supports this image type.

Best regards, Guenter
Message 2 of 4
(6,624 Views)
Does this Vi work without vision?
--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
Message 3 of 4
(6,624 Views)
Sorry, because I have IMAQ Vision installed on my PC. It contains (of course) the VI "IMAQ ColorImageToArray".
Unfortunately I therefore cannot check, if a pure installation of NI-IMAQ 3.x also installs this VI to LabVIEW.

But if I remember the contents of the palette installed to LabVIEW by NI-IMAQ correctly, the VI comes with any version of NI-IMAQ.

Best regards, Guenter
0 Kudos
Message 4 of 4
(6,616 Views)