pointPolygonTest

asked 2015-09-15 10:13:02 -0600

desri gravatar image

updated 2015-09-15 10:17:55 -0600

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.

edit retag flag offensive close merge delete

Comments

sturkmen gravatar imagesturkmen ( 2015-09-15 10:24:11 -0600 )edit

I was wondering if there is solution in the Opencv-Python bindings.

desri gravatar imagedesri ( 2015-09-15 10:46:23 -0600 )edit