Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Has OpenCV built-in functions to calculate circularity, compactness etc for contours/blobs?

Compactness can be defined for example as the perimeter squared, divided by 4piarea, so that a circle has a compactness of 1.

Before writing my own function, Is there a similar function in the OpenCV Library ?

Thanks.

Ps : SimpleBlobDetector does not help me as I want to calculate circularity for existing prior extracted contours.