how to find the largest object in the coin image?
5 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Walter Roberson
2022-1-1
A = imread('eight.tif');
C=imbinarize(A, 'adaptive', 'ForegroundPolarity', 'dark');
figure,imshow(C)
B=bwareafilt(~C,1);
figure,imshow(~B)
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



