How to make disconnected closed curves connected by adding a shortest path using MATLAB?

Posted by user198729 on Stack Overflow See other posts from Stack Overflow or by user198729
Published on 2010-04-16T14:08:26Z Indexed on 2010/04/17 3:33 UTC
Read the original article Hit count: 229

bwlabel can be used to get disconnected objects in an image:

[L Ne] = bwlabel(image);   

I want to make the objects(But my target is only the contours(closed curve) of these objects) connected by adding a shortest path where necessary.

How do I approach this?

UPDATE

Or how to dilate the closed curves so that they get connected?

How to calculate the shortest path between two disconnected closed curves?

© Stack Overflow or respective owner

Related posts about matlab

Related posts about image-processing