gradient image of multi -spectral image
조회 수: 2 (최근 30일)
이전 댓글 표시
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
답변 (1개)
Walter Roberson
2013년 8월 29일
Have you considered using atan2() ?
댓글 수: 2
Walter Roberson
2013년 9월 1일
I am aware of that. But if the information is available then atan2() is more appropriate.
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Filtering and Enhancement에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!