MATLAB: Shortest path in grayscale image

Image Processing Toolboxpath

How can I find the path with least intenzity between two points (A and B) like on image:

Best Answer

Or, if you know the locations of A and B you can use Dynamic Programming or something like A*
Related Question