Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

What does isContourConvex actually do?


I am using isContourConvex to remove some contours in my image and it also works quite well. But now I want to know what the function actually does? I found some threads where it says, that isContourConvex can distinguish between closed and open contours. In my example "boomerang-shaped" contours which in fact are closed get marked as false and I can remove them (exactly what I want).

I found this: and this: but the explanation is really small and I don't understand the source code.