MATLAB: How do we choose circles and rectangles

circleimageImage Acquisition Toolboximage analysisimage processingImage Processing Toolboxrectangularshape recognition

How do we choose circles and rectangles?
I want to determine the rectangles and circles in the picture with different colors and write numbers on them. For example, I want to see how many circles and how many rectangles there are. Can you please help with the code?

Best Answer

Just call imbinarize() and bwferet().
Related Question