self intersected contour
Hi,
I want to know if there is a way to detect self intersected contour and the possibility to fix that.
I Found a the same question in stackoverflow but with no valid answer.
https://stackoverflow.com/questions/3...
Thank's
How do you want to fix a contour???
Hi, to eliminate the intersected point. But this is not the important part. I want to know if there is a way to detect self intersected contour
The contour is the outside border of your polygon. So it won't have any intersections - even if the polygon has self intersections.
Perhaps you can work with
cv::isContourConvex()
though the function output is undefined for intersected contours.