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.

6 ビュー (過去 30 日間)

回答 (1 件)

DGM 2022 年 11 月 27 日
Something like this:
% read an image
inpict = imread('');
% binarize the image somehow
mask = imbinarize(inpict); % pick a method
% remove blobs that are smaller than a particular area
mask = bwareaopen(mask,100); % pick a size


Community Treasure Hunt

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

Start Hunting!

Translated by