How can i connect 2 points in the plane by rectilinear lines instead of straight lines??
조회 수: 6 (최근 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
댓글 수: 0
채택된 답변
Image Analyst
2013년 5월 10일
편집: Image Analyst
2013년 5월 10일
There is a built-in function for that in the Image Processing Toolbox: bwdistgeodesic().
See Steve's blog for a 5-part tutorial on this: http://blogs.mathworks.com/steve/2011/11/01/exploring-shortest-paths-part-1/
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!