Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

pointPolygonTest

Hi,

I want to find the closest point on a contour to a given point in an image. I know cv2.pointPolygonTest gives the distance from a point to the closest contour edge. How to retrieve that point (coordinates) on the contour?

I am using Opencv-3.0.0 on Python 2.7.x, Ubuntu 14.04.2 LTS.

Your help is much appreciated.

pointPolygonTest

Hi,

I want to find the closest point on a contour to a given point in an image. I know cv2.pointPolygonTest gives the distance from a point to the closest contour edge. How to retrieve that point (coordinates) on the contour?

I am using Opencv-3.0.0 on Python 2.7.x, Ubuntu 14.04.2 LTS.

Your help is much appreciated.