MATLAB: Shape features for the segments

Image Processing Toolboximage segmentation

hi i have to write a program for shape features for the segments with top 4 largest areas. and i dont know how to do this .
plz help me.

Best Answer

My function that extracts the N biggest or smallest blobs is included in the demo I attached below. Once you have the 4 largest regions you can then call regionprops to measure things in them like the area, perimeter, equivalent circular diameter, etc.
Related Question