Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
probleme with binarization my image
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
hi everyone please how can i remove thoses small pieces and small squares outside the finger imag
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/221091/image.bmp)
thanks for helping
0 comentarios
Respuestas (2)
Sulaymon Eshkabilov
el 26 de Mayo de 2019
Hi,
Here is a simple solution:
clearvars
DD=imread('image.bmp');
figure(1), imshow(DD), title('Original')
MSK = DD > 25;
MSK = bwareaopen(MSK, 25);
MSK1 = imclearborder(MSK);
figure(2) % Compare Figure 1 and Figure 2
imshow(MSK1), shg, title('Cleaned')
Good luck.
0 comentarios
Image Analyst
el 26 de Mayo de 2019
Try
- imclearborder() to remove blobs touching the edge of the image.
- bwareafilt() to remove the largest blob(s) or blobs with areas in a certain range.
- bwareaopen() to remove blobs smaller than a certain area.
0 comentarios
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!