Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Building contours from points

Hello !

One of my algorithms constructs points which should represent a contour. My problem with these points is the order. There is no reason these points have the correct connection order in order to be able to build a contour (for example, passing these to cv::drawContours will result in a mess...).

How should I order these points to satisfy the contour definition of OpenCV ? Is it even possible ?

Thanks !