如何在 MATLAB 中计算图像轮廓的周长?
How to calculate the perimeter of an image contour in MATLAB?
我想找到图像轮廓的周长值,用作对图像进行分类的特征。
如何在 MATLAB 中计算周长?
您可以将图像二值化(例如使用 graythresh
or any other thresholding method) and then use the Perimeter
property of regionprops
。
如果您想更方便地获取区域边界的坐标,您可能会发现bwboundaries
非常有用。
我想找到图像轮廓的周长值,用作对图像进行分类的特征。
如何在 MATLAB 中计算周长?
您可以将图像二值化(例如使用 graythresh
or any other thresholding method) and then use the Perimeter
property of regionprops
。
如果您想更方便地获取区域边界的坐标,您可能会发现bwboundaries
非常有用。