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.

回答(1 个)

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

类别

帮助中心File Exchange 中查找有关 Convert Image Type 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by