Gradient descent - contour map

127 Views Asked by At

Given a 1024x918 matrix i drew a contour map and marked 8 points on it (top of the mountains). Using gradient descent I want to find shortest way down given the only matrix. How should I approximate the value of the gradient and what grid point should I pick?

enter image description here