How can I remove the small blobs in ‘Blobs.jpg’? is it using filtering right? i got confused with the step to remove the blob on that image.
조회 수: 19 (최근 30일)
이전 댓글 표시
답변 (1개)
DGM
2022년 11월 27일
Something like this:
% read an image
inpict = imread('https://www.mathworks.com/matlabcentral/answers/uploaded_files/148990/image.jpeg');
% binarize the image somehow
mask = imbinarize(inpict); % pick a method
imshow(mask)
% remove blobs that are smaller than a particular area
mask = bwareaopen(mask,100); % pick a size
imshow(mask)
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!