Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to Close open contours

I want to close the open contours like the picture :

image description

And I want to close the open contour as shown in the picture and make it a single contour (single shape) . (Different colors in the picture show different contours).

:image description

How can I do that?

I've tried the approxPoly , but did not succeed.