Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

please use findContours() to get a contour.

your per-pixel loop may gather the same points, but they are in the wrong order (line-scan)