I have a set of greyscale images where I need to locate the local minima. I'm writing my code in Matlab and I'm looking for suggestions on how to structure the algorithm: do I need to calculate the gradient or can I just use the I have a set of greyscale images where I need t