how to find the shortest distance b/w 2 points using image processing?

4 views (last 30 days)
Hi everyone! I have just started up with image processing. The problem statement is to find out the shortest distance between 2 points . considering many lines between the 2 points(white lines on black background),the shortest line have to be found out. Can anyone help me with this?

Answers (1)

Image Analyst
Image Analyst on 12 Oct 2013
You can use bwdistgeodesic() as illustrated in Steve's blog: http://blogs.mathworks.com/steve/2011/11/01/exploring-shortest-paths-part-1/

Community Treasure Hunt

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

Start Hunting!