Create Line Paths Between Non-Uniformly Distanced Neighbors
2 次查看(过去 30 天)
显示 更早的评论
Hi all,
I have about 10000 points scattered. I would like to form a line between every 2 points such they creates paths as we can already picture it in our mind by seeing the graph. The indices of those points are known. The problem is that the distance between the two or three neigboring points are not uniform, and thus setting a tolerance (e.g. within radius of a certain value form a path) would seemed not to work.
Eventually what I want is the matrix containing path indices (first column), node A of the each path (second column), and node B of each path (third column).
Is there any premade function in matlab that does this? Or is there any method to solve this? I don't have graph toolbox in my Matlab (e.g. graph, neighbors), but I can try to get them if needed.
Please suggestion. Thanks in advance.
0 个评论
回答(1 个)
John D'Errico
2018-5-20
编辑:John D'Errico
2018-5-20
No, there are no premade functions to do it (that I know of.) As well, you are going to have a difficult time identifying things like bifurcations. Things that seem trivial for the eye/brain to do are often far less trivial to write computer code to do robustly.
I'd suggest starting with the CRUST algorithm. Do some reading here:
You MIGHT be able to find some viable code for CRUST in MATLAB, but what I did see was pretty crude.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Operators and Elementary Operations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!