diplib

Regionprops vs. PodczeckShapes/DIPimage Circularity question - Matlab

自作多情 提交于 2020-07-09 08:29:31
问题 Can someone please explain me why the 'Circularity' in Matlab is calculated by (4*Area*pi)/(Perimeter^2) while in Podczeck Shape it is Area/(Pi/4*sp^2) https://qiftp.tudelft.nl/dipref/FeatureShape.html)? Or is it just simply defined differently? I tried to write a Podczeck Shape circularity code in Matlab and I assume that ‘MaxFeretDiameter’ is perpendicular to ‘MinFeretDiameter’, am I correct? Code: clc; clear all; close all; Pi=pi; Image = rgb2gray(imread('pillsetc.png')); BW = imbinarize