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!