Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Summing values of pixels in labeled image

Is there a way to summ the pixel values within a particle in a labeled image? For example, if my image had one particle with pixel values 4,5,10, I need a VI that reeturns that particle 1 has a sum of 19.

0 Kudos
Message 1 of 3
(4,184 Views)

Or is there a way to get the coordinates of all the pixels in each particle?

0 Kudos
Message 2 of 3
(4,182 Views)

I believe if you use IMAQ Quantify with the labeled image as a mask, you will get separate results for each particle.  The results include the mean brightness and the number of pixels.  If you multiply these two numbers together, you get the sum of the pixel values.

 

Bruce

Bruce Ammons
Ammons Engineering
0 Kudos
Message 3 of 3
(4,172 Views)