how to find the largest object in the coin image?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
betty
am 1 Jan. 2022
Kommentiert: betty
am 1 Jan. 2022
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 Kommentare
Akzeptierte Antwort
Walter Roberson
am 1 Jan. 2022
A = imread('eight.tif');
C=imbinarize(A, 'adaptive', 'ForegroundPolarity', 'dark');
figure,imshow(C)
B=bwareafilt(~C,1);
figure,imshow(~B)
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Segmentation and Analysis finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!