MATLAB: How to categorize the rectangle or circle

circlerectangular

What program is used for choosing rectangle or circle?

Best Answer

You probably want to look at regionprops() and the "Eccentricity" measurement. Circles have an eccentricity of 0, but rectangles never do.