extract point data from plot

1 回表示 (過去 30 日間)
zheng
zheng 2011 年 3 月 10 日
Hi,all
Is it possible to program a function which can extract point data from plot? In my case, I have 2D coordinates data point(over 300k) that come from road network. Based on original information, I only have easting and northing for each point. When they are plotted in figure, the approximate road network geometry can be shown. is there any suggestion how to identify which point data are belong to same road?
for instance, all points belong to the same road will be assigned a value (1 to n)
at the end, those values will be added into orignal data table as third column.
Many thanks

回答 (1 件)

Walter Roberson
Walter Roberson 2011 年 3 月 10 日
If you were to grid the data in the manner I discussed in response to your other question and were to convert that to binary, then you would be able to use tools such as bwlabel() to find connected rounds. You have a difficulty, though, in identifying which road continues where when roads cross.
It seems to me that it should be possible to imdilate() with a kernel that separated lines at places that had more neighbours (e.g., roads crossing or joining)... though I am having difficulty thinking of an appropriate kernel. Perhaps imerode() thin lines leaving only the places with higher connectivity, find those places in the binary map and zero them out, and then bwlabel what remains.

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by