horizontal and vertical difference array

can any one help me to find the (horizontal and vertical difference array) of an image using this formulas in the image below
Sketch.png
where u and v denote coordinates in corresponding matrix.

Answers (1)

Try this:
[Dx, Dy] = imgradientxy(grayscaleImage, 'intermediate');

Asked:

on 12 Apr 2019

Answered:

on 12 Apr 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!