Average Nearby Detected pixels into single point

asked 2014-06-21 01:45:04 -0600

the___doctor gravatar image

updated 2014-06-21 03:58:20 -0600

berak gravatar image

Is there a way to average nearby detects pixels (extracted using canny and findcontours). The picture below shows the points of the hand, and i am trying to find a way to average the detected averages in each location to a sing Point.

example image here!

Any help would be much appreciated, Thanks in advance!

edit retag flag offensive close merge delete

Comments

2

for a given contour,

  • either get the boundingrect and take it's center (geometric)
  • or the moments (center of gravity)
berak gravatar imageberak ( 2014-06-21 04:00:16 -0600 )edit