how to find the smallest object in the coin image?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
how to find the smallest object in the image below ? the code I wrote below does not work
A = imread('eight.tif');
C=imbinarize(A, 'adaptive', 'ForegroundPolarity', 'dark');
figure,imshow(C)
BW3=bwareafilt(C,1,'smallest');
figure, imshow(BW3)
0 comentarios
Respuesta aceptada
Matt J
el 1 de En. de 2022
Editada: Matt J
el 1 de En. de 2022
This should make it easier:
A = imread('eight.tif');
C=imbinarize(A, 'adaptive', 'ForegroundPolarity', 'dark');
C=bwareafilt( bwconvhull(~C,'objects') ,4);
figure,imshow(C)
4 comentarios
Matt J
el 1 de En. de 2022
okay, well if you think the problem is solved, then please Accept-click the answer to indicate so.
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!