how to find the largest object in the coin image?
12 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
betty
el 1 de En. de 2022
Comentada: betty
el 1 de En. de 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 comentarios
Respuesta aceptada
Walter Roberson
el 1 de En. de 2022
A = imread('eight.tif');
C=imbinarize(A, 'adaptive', 'ForegroundPolarity', 'dark');
figure,imshow(C)
B=bwareafilt(~C,1);
figure,imshow(~B)
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!