Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

probleme with binarization my image

조회 수: 1 (최근 30일)
Bekhtaoui Abdelhakim
Bekhtaoui Abdelhakim 2019년 5월 26일
마감: MATLAB Answer Bot 2021년 8월 20일
hi everyone please how can i remove thoses small pieces and small squares outside the finger imag
thanks for helping

답변 (2개)

Sulaymon Eshkabilov
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.

Image Analyst
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.

제품


릴리스

R2017b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by