Create Line Paths Between Non-Uniformly Distanced Neighbors

조회 수: 2 (최근 30일)
czeslaw
czeslaw 2018년 5월 20일
편집: John D'Errico 2018년 5월 20일
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.

답변 (1개)

John D'Errico
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.

카테고리

Help CenterFile Exchange에서 Operators and Elementary Operations에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by