Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

how to Average an RGB 2D array to a single RGB value

Hello, I'm using 8.2 Labview with developer suite including NI vision toolkit and everthing installed.
 
I'm trying to get a single average RGB value from a 2D array with RGB cluster (one cluster per every index i,j).
.
the 2D array is a result of "IMAQ Integer to ColorValue" VI.
 
can this be done? How?
 
Thank you
EyeZik
 
0 Kudos
Message 1 of 3
(3,542 Views)
Hi EyeZik,

I would try using the IMAQ Extract Color Planes VI to get greyscale images that represent the red, green, and blue intensities, respectively.  This VI can be found by going to Vision and Motion»Vision Utilities»Color Utilities.  You can then find the average of the pixels in an image by using the IMAQ Linear Average VI.  This can be found at Vision and Motion»Image Processing»Analysis.  This should allow you to quickly get an average for each of of the primary colors.

Wes Pierce
Principal Engineer
Pierce Controls
0 Kudos
Message 2 of 3
(3,511 Views)
Rgb i
0 Kudos
Message 3 of 3
(3,508 Views)