I have a edge detected by Canny. And I want to extract contours of the edges.
I have checked the following post. OpenCV converting Canny edges to contours.
But it didn't deal with complex shape. e.g, circle with rectangle or circle with line.
cv::findContours() function has 2 issues. 1. Return closed contour for non closed edge, but I want non closed contour 2. Return 2 closed contours for closed edge(maybe one of the contours is for edge, and another one is for inner side of the edge, but I want one of the two.
Is there any way to solve this out? Thanks.
PS : I have uploaded the sample image.