How to completely delete a very small area, the eyes do not look at it, you can see the picture after zooming in.

조회 수: 1 (최근 30일)
Enlarged area:

채택된 답변

Image Analyst
Image Analyst 2021년 5월 20일
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개)

카테고리

Help CenterFile Exchange에서 Recognition, Object Detection, and Semantic Segmentation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by