如何计算圆度形状特征的值'图像轮廓?

时间:2015-04-23 05:11:53

标签: matlab image-processing computer-vision

我正在对具有不同形状特征的图像分类进行分配。

我们如何在MATLAB中计算图像轮廓的圆度值?

1 个答案:

答案 0 :(得分:3)

There is no standard that can determine how "round" a contour is, or any shape in general. However, one heuristic that I have seen is from this post by Shai Bagon: https://stackoverflow.com/a/24802605/3250829.

The heuristic is defined as:

ratio = 4 * pi * Area / ( Perimeter^2 )

Area is the area defined by the shape, or the total number of pixels that occupy the internal shape of the contour, and Perimeter is the total number of pixels that define the perimeter of the contour.

If the contour is round, the ratio is quite high. However, if the contour is not round, the ratio is low. Therefore, for each contour, perhaps use the above criteria as a starting point.