필터 지우기
필터 지우기

Need help on Image Gradient functions in matlab

조회 수: 1 (최근 30일)
.. Vamshi
.. Vamshi 2013년 2월 1일
댓글: Image Analyst 2015년 9월 20일
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일
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
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).

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by