how do I find the smallest object in a binary coins image ?

4 views (last 30 days)
How to find the smallest object in the image below I would appreciate it if you could help

Answers (2)

Yusuf Suer Erdem
Yusuf Suer Erdem on 7 Dec 2021
check imfindcircles command. there are multiple similar examples on matlab help center. try to adapt yours to them.

yanqi liu
yanqi liu on 8 Dec 2021
clc; clear all; close all;
% find the smallest object
figure; imshow(im);
hold on; rectangle('position', stats(ind).BoundingBox, 'EdgeColor', 'g', 'LineWidth', 2)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!