Ask Your Question
0

self intersected contour

asked 2019-10-03 10:06:53 -0500

assil gravatar image

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

edit retag flag offensive close merge delete

Comments

How do you want to fix a contour???

kbarni gravatar imagekbarni ( 2019-10-03 10:31:03 -0500 )edit

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

assil gravatar imageassil ( 2019-10-04 03:06:34 -0500 )edit

The contour is the outside border of your polygon. So it won't have any intersections - even if the polygon has self intersections.

kbarni gravatar imagekbarni ( 2019-10-07 04:20:27 -0500 )edit

Perhaps you can work with cv::isContourConvex() though the function output is undefined for intersected contours.

Grillteller gravatar imageGrillteller ( 2019-10-15 07:16:33 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
-1

answered 2019-10-04 17:23:52 -0500

crackwitz gravatar image

contours are polygons. you'll find more material when you search for that instead.

https://math.stackexchange.com/questi...

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2019-10-03 10:06:53 -0500

Seen: 38 times

Last updated: Oct 04