How do i remove all the open contours

In the picture attached, I have used canny edge detection I wanna get rid of those lines and open contours and want to retain only the small balls, closed contours how do i do it I am really desperate to do this please help me

10 Comments

This is the link if you cannot see the file attach please help me.
Image Analyst
Image Analyst on 30 Apr 2015
Edited: Image Analyst on 30 Apr 2015
Don't use third party image hosting sites. Attach images right here with the green and brown frame icon if you want us to see it in your post. Or with the paper clip icon if you don't want us to too it right away. Also attach your original image and your m-file.
I have attached a image here I would like to find the three small closed contour and remove the lines. I have to do this for 8 more pictures so I will be using a for loops
We're waiting for you to finish your post. Did you see where I suggested: "Also attach your original image and your m-file."?
the above CONTOUR LINES.fig is the result after I have used edge detection I want to know how to get the three ball like figure and remove all the unwanted open contoured lines. The big circle need not to be removed
if you think i've used the wrong edging method I can show you a pic before I used the edge method, maybe you can tell me the appropriate way

Sign in to comment.

Answers (1)

Asked:

on 30 Apr 2015

Answered:

on 1 May 2015

Community Treasure Hunt

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

Start Hunting!