how to find the largest object in the coin image?
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
how to find the largest object in the image below ? the code I wrote below does not work

A = imread('eight.tif');
C=imbinarize(A);
figure,imshow(C)
B=bwareafilt(C,1);
figure,imshow(B)
0 commentaires
Réponse acceptée
Walter Roberson
le 1 Jan 2022
A = imread('eight.tif');
C=imbinarize(A, 'adaptive', 'ForegroundPolarity', 'dark');
figure,imshow(C)
B=bwareafilt(~C,1);
figure,imshow(~B)
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



