how to find the shortest distance b/w 2 points using image processing?
4 views (last 30 days)
Show older comments
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?
2 Comments
sixwwwwww
on 12 Oct 2013
Dear Sribalaji, I have question that whether all the lines are straight or it also include curved lines?
Answers (1)
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/
2 Comments
Image Analyst
on 12 Oct 2013
You can also try A* http://en.wikipedia.org/wiki/A* or dynamic programming (checkerboard method) http://en.wikipedia.org/wiki/Dynamic_programming#Checkerboard
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!