Remove unwanted region in image by matlab
问题 I have a image that includes object and some unwanted region (small dots). I want to remove it. Hence, I use some morphological operator example 'close' to remove. But it is not perfect. Do you have other way to remove more clear? You can download example image at raw image This is my code load Image.mat %load Img value Img= bwmorph(Img,'close'); imshow(Img); 回答1: You might prefer a faster and vectorized approach using bsxfun along with the information obtained from bwlabel itself. Note: