gradient image of multi -spectral image
이전 댓글 표시
when i tried this code for color gradient in RGB ,i faced a problem.
atan() function gives us range from(-pi,pi).
if(teta<0.0)
teta=teta+2*pi;
and to convert (0,360) degree i do
teta=teta*180/pi;
but this does not give me satisfactory result.
i want a angle matrix mean 'teta' has value (0,360) degree
댓글 수: 1
Amith Kamath
2013년 8월 29일
Have you tried contacting the author of this code?
답변 (1개)
Walter Roberson
2013년 8월 29일
0 개 추천
Have you considered using atan2() ?
댓글 수: 2
preet
2013년 9월 1일
Walter Roberson
2013년 9월 1일
I am aware of that. But if the information is available then atan2() is more appropriate.
카테고리
도움말 센터 및 File Exchange에서 Image Segmentation and Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!