How can i connect 2 points in the plane by rectilinear lines instead of straight lines??

2 ビュー (過去 30 日間)
Hello People,
my aim is to visualize the rectilinear steiner tree problem, e.g. as it is presented here:
So i have to find the intersection points of the vertical and horizontal lines crossing the respective points in the x/y - plane.
Does anybody have a hint for me of how to get this grid as basic for my lines or how to connect my lines in a rectilinear way??
best greetz, John

採用された回答

Image Analyst
Image Analyst 2013 年 5 月 10 日
編集済み: Image Analyst 2013 年 5 月 10 日
There is a built-in function for that in the Image Processing Toolbox: bwdistgeodesic().
Or, you can try "Pick of the week", John D'Errico's arclength: http://blogs.mathworks.com/pick/2012/04/27/calculating-arclengths-made-easy/

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Segmentation and Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by