There is an input image of a metal surface with lots of curves on it. I have used ' bwlabel ' function of MATLAB to identify all the curves of the image. Hence, each curve has its unique ID. Now my task is to connect two cruves which have gap between them. That is, there are two disjoint curves i.e. there is no connectivity between them, but I need to connect them and make them into a single curve.
E.g. In the above image, in the marked region, there are two disjoint curves which I would like to join.
Basically, I want a curve to be drawn joining those two curves.
4 Comments
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/551098-joining-two-curves-on-an-image#comment_904711
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/551098-joining-two-curves-on-an-image#comment_904711
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/551098-joining-two-curves-on-an-image#comment_904714
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/551098-joining-two-curves-on-an-image#comment_904714
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/551098-joining-two-curves-on-an-image#comment_904792
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/551098-joining-two-curves-on-an-image#comment_904792
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/551098-joining-two-curves-on-an-image#comment_904804
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/551098-joining-two-curves-on-an-image#comment_904804
Sign in to comment.