Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Average Location of Pixels

I have an image where every pixel is either 0 or 255.  How do I find the location of the average of the 255 pixels.  I am looking for an X and a Y coordinate.
0 Kudos
Message 1 of 3
(3,182 Views)

IMAQ Centroid should do exactly what you need.

 

Bruce

Bruce Ammons
Ammons Engineering
0 Kudos
Message 2 of 3
(3,177 Views)

 

Average of 255 pixels

 


For any particular static location you can use an imaq mask/extract and apply the centroid mentioned above. Post an image if this doesnt solve your problem.

Message Edited by muks on 04-01-2010 04:38 PM
0 Kudos
Message 3 of 3
(3,159 Views)