MATLAB: Boundary mark of the image

image processing

I want to mark the boundary of the centered circular objects. I also want to calculate the area of the object. How can I do it?

Best Answer

You can use the “bwboundaries” function for tracing boundaries and use an additional ‘noholes’ parameter to accelerate the process for finding circular objects only. Further, to find the area of the detected object you can use the “regionprops” function. For detailed information on how to do this please see the documentation link below - https://www.mathworks.com/help/images/identifying-round-objects.html