# Revision history [back]

### What does isContourConvex actually do?

Hi,

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: https://docs.opencv.org/2.4/modules/imgproc/doc/structural_analysis_and_shape_descriptors.html and this: https://github.com/opencv/opencv/blob/master/modules/imgproc/src/convhull.cpp but the explanation is really small and I don't understand the source code.