Info
この質問は閉じられています。 編集または回答するには再度開いてください。
probleme with binarization my image
1 回表示 (過去 30 日間)
古いコメントを表示
hi everyone please how can i remove thoses small pieces and small squares outside the finger imag
thanks for helping
0 件のコメント
回答 (2 件)
Sulaymon Eshkabilov
2019 年 5 月 26 日
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 件のコメント
Image Analyst
2019 年 5 月 26 日
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 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!