how to connect very disconnected pixels in an binary image ?
Show older comments
Hello ! I am trying to connect the edges of my 'im.png' (binary image) ..I have tried imfill,Edge Linking and Line Segment Fitting by Peter,bwconnect ,,but it is not helpful at all ... i want to have image like 'mJPCLN001.png'
If someone can help me by providing a code or give me some suggestion for how to link edges in my image,,ill be very obliged ..
Best regards
Answers (1)
Image Analyst
on 28 May 2016
0 votes
Try activecontour. Demo is attached.
4 Comments
mahreen kiran
on 30 May 2016
Edited: Walter Roberson
on 31 May 2016
Image Analyst
on 30 May 2016
Let's see your code. activecontour() returns a binary image, not boundaries. What did you do with the bw variable that activecontour() gave you? That should be a smoother blobs image.
mahreen kiran
on 31 May 2016
Edited: Walter Roberson
on 31 May 2016
Image Analyst
on 31 May 2016
I'm not sure you saw my last message.
Categories
Find more on Images in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!