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
Amith Kamath 2013년 8월 29일
Have you tried contacting the author of this code?

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

답변 (1개)

Walter Roberson
Walter Roberson 2013년 8월 29일

0 개 추천

Have you considered using atan2() ?

댓글 수: 2

preet
preet 2013년 9월 1일
i m using atan()
Walter Roberson
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에 대해 자세히 알아보기

태그

질문:

2013년 8월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by