I want to convert a graph of loops and line segments into one connected structure without any loops. I can threshold the image and isolate only the loops but then I get stuck.
Here is the image I want to change.
No products are associated with this question.
3 Comments
Direct link to this comment:
http://www.mathworks.com/matlabcentral/answers/44696#comment_91914
Are you looking to create a "spanning tree" ?
Direct link to this comment:
http://www.mathworks.com/matlabcentral/answers/44696#comment_91931
Yes that's exactly what we are looking for. I was wondering how to make a spanning tree from the graph given using the maximum number of branchpoints.
Direct link to this comment:
http://www.mathworks.com/matlabcentral/answers/44696#comment_91947
I do not know if biograph would be of any use to you: http://www.mathworks.co.uk/matlabcentral/answers/4035-how-to-keep-distance-in-view-of-minspantree-in-biograph