How to completely delete a very small area, the eyes do not look at it, you can see the picture after zooming in.
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Wesley
el 20 de Mayo de 2021
Respondida: Image Analyst
el 20 de Mayo de 2021
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/623788/image.jpeg)
Enlarged area:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/623793/image.png)
0 comentarios
Respuesta aceptada
Image Analyst
el 20 de Mayo de 2021
I had a more complete answer made up before you deleted your question. So all I'll say now is to use bwareaopen() or bwareafilt().
minAcceptableArea = 100; % pixels or whatever.
binaryImage = bwareaopen(binaryImage, minAcceptableArea); % Keep blobs 100 or larger
% OR
binaryImage = bwareafilt(binaryImage, [minAcceptableArea, inf]); % Keep blobs 100 or larger
% Another option if you know how many blobs to expect
binaryImage = bwareaopen(binaryImage, 10); % Keep the 10 largest blobs.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Image Processing Toolbox en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!