How to close small circles?

7 views (last 30 days)
Alexander Esser
Alexander Esser on 2 Nov 2012
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 Comment
Image Analyst
Image Analyst on 2 Nov 2012
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.

Sign in to comment.

Answers (2)

Image Analyst
Image Analyst on 2 Nov 2012
Edited: Image Analyst on 2 Nov 2012
You might try using a bigger kernel, or try edge linking. Or try imfindcircle() in the Image Processing Toolbox (>= R212a).

Alexander Esser
Alexander Esser on 5 Nov 2012
What do you mean by "_a bigger kerne_l"? How do I change the kernel and how does it affect the image/circles?
  1 Comment
Image Analyst
Image Analyst on 5 Nov 2012
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.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!