MATLAB: Gradient Field of an Image…

fieldgradientimage

Hi,
Does anyone know how to calculate the gradient field of an image? I have checked the use of Quiver plots to achieve this, but am having difficulties applying it to an image…
Many thanks in advance for any help anyone can give!
Phil

Best Answer

You can calculate the gradient using:
doc gradient
and then use the results from that for your quiver plot.