How to close small circles?

Below you see a binary image of a spray. I have to focus on the little drops outside on the very left and very right region. Some circles on the left and right side are still open. How can i close them? I allready tried BW = bwmorph(BW,'close'); and BW = bwmorph(BW,'diag'); but they wont work.

1 个评论

Though you mgiht want us to, we can't see images on your X drive. Upload it somewhere where we can see it: http://www.mathworks.com/matlabcentral/answers/7924-where-can-i-upload-images-and-files-for-use-on-matlab-answers. Make sure it's somewhere where we can see it instantly and don't have to click a bunch of times or download anything.

请先登录,再进行评论。

回答(2 个)

Image Analyst
Image Analyst 2012-11-2
编辑:Image Analyst 2012-11-2

1 个投票

You might try using a bigger kernel, or try edge linking. Or try imfindcircle() in the Image Processing Toolbox (>= R212a).
Alexander Esser
Alexander Esser 2012-11-5

0 个投票

What do you mean by "_a bigger kerne_l"? How do I change the kernel and how does it affect the image/circles?

1 个评论

This should have been a comment, rather than an answer to your question. Anyway, what I called a kernel, they call a "structuring element" in the help.

请先登录,再进行评论。

Community Treasure Hunt

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

Start Hunting!

Translated by