Average Nearby Detected pixels into single point
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.
Any help would be much appreciated, Thanks in advance!
for a given contour,