Need help on Image Gradient functions in matlab

I want to calculate the gradient direction of an image.
I would like to know the differences between gradient, imgradient, imgradientxy functions in matlab.
What's the difference between gradient direction and directional gradient?
Please help.
Thanks in Advance.

1 件のコメント

.. Vamshi
.. Vamshi 2013 年 2 月 3 日
I tried hard but couldn't find much. Any help is appreciated.

サインインしてコメントする。

回答 (1 件)

Image Analyst
Image Analyst 2013 年 2 月 3 日

0 投票

Did you look in the help? gradient is the slope of an image along a direction. imgradient returns the max gradient and the direction the max slope occurs along. Other functions may give you the vertical, horizontal, or average gradient - depends on the function.

3 件のコメント

.. Vamshi
.. Vamshi 2013 年 2 月 5 日
編集済み: .. Vamshi 2013 年 2 月 5 日
yeah... I checked. gradient and imgradient also does the same. but could not understand the difference.
Walter Roberson
Walter Roberson 2015 年 9 月 20 日
matthew molteno commented
This hasn't been fully answered. Does gradient give the same result as imgradientxy?
Image Analyst
Image Analyst 2015 年 9 月 20 日
gradient uses the Laplacian while imgradient uses Prewitt or Sobel filters to give the gradient.
imgradient gives magnitude and direction while imgradientxy give the derivative in strictly the x and y direction. Kind of like giving x and y instead of sqrt(x^2+y^2) and atan(y/x).

サインインしてコメントする。

質問済み:

2013 年 2 月 1 日

コメント済み:

2015 年 9 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by