OpenCV Q&A Forum - RSS feedhttp://answers.opencv.org/questions/OpenCV answersenCopyright <a href="http://www.opencv.org">OpenCV foundation</a>, 2012-2018.Sun, 22 Sep 2013 11:41:37 -0500circularity of a connected componenthttp://answers.opencv.org/question/21101/circularity-of-a-connected-component/Greetings.
I wanted to know if it was possible to know whether a given connected component has an outer shape (relatively) circular or elliptical. Is there any function to do that? o How to calculate the circularity or roundness?.
Thanks in advance for any help and / or suggestionsSat, 21 Sep 2013 00:27:34 -0500http://answers.opencv.org/question/21101/circularity-of-a-connected-component/Answer by wuling for <p>Greetings.</p>
<p>I wanted to know if it was possible to know whether a given connected component has an outer shape (relatively) circular or elliptical. Is there any function to do that? o How to calculate the circularity or roundness?.</p>
<p>Thanks in advance for any help and / or suggestions</p>
http://answers.opencv.org/question/21101/circularity-of-a-connected-component/?answer=21133#post-id-21133Hi, I saw nobody answer this.
But I only know some definitionss of the blob.
The circularity define:
http://www.ehow.com/how_5138742_calculate-circularity.html
and also from J. Russ Image Processing Handbook, Vol. 2, p. 525, there are some definitions of the blob
Formfactor 4 pi Area / Perimeter^2
Roundness 4 Area / (pi Max-diam^2)
Aspect ratio Max-diam / Min-diam
Curl max caliper diam / fiber length
Convexity Convex Perimeter / Perimeter
Solidity Area / Convex Area
Compactness sqrt ( 4 * area / pi) / max diameter
Modification ratio inscribed diameter / max diameter
Extent Net Area / area of bounding rectangle
Sun, 22 Sep 2013 11:41:37 -0500http://answers.opencv.org/question/21101/circularity-of-a-connected-component/?answer=21133#post-id-21133