Which method can we use to connect a skeleton road ?
3 ビュー (過去 30 日間)
古いコメントを表示
I'm trying to determine all the possible paths to matches extremities of those curves (Road following)and choosing paths which verify a configuration like X, Y, T, _, and L in order to connect them(red curve) in a road skeleton not connected (white curve) like the example below :
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/161053/image.bmp)
I detected feature points like the picture below
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/161054/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/161055/image.png)
but i'm stuck i don't know what approach use to do it because it requires a dynamique way .
i have to use a dynamic research window to determine the curve shape(configuration like X, Y, T, _, and L) that will complete the road network.
Any ideas please! Help is much appreciated
0 件のコメント
回答 (1 件)
Image Analyst
2014 年 4 月 16 日
I'm not sure what you're asking or how to answer. With the bwmorph() function you can find endpoints and branchpoints (the red * in your images). Any branchpoint can be checked out to see what it is. There are 256 possible combinations of the 8 surrounding pixels and there may be certain patterns that define each. Then you can make a look up table, like if it's
[0, 1, 0;
1, 1, 1;
0, 1, 1]
it's an "X".
5 件のコメント
Image Analyst
2014 年 4 月 18 日
What do you mean by "connect" and what are "the red curves"? I don't see any red curves, just a set of isolated (x,y) coordinates where you placed a *. And like I said, you can construct a lookup table based on the pattern of the surrounding 8 pixels to determine if it's an X, a Y, etc.
参考
カテゴリ
Help Center および File Exchange で Vehicle Scenarios についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!