gradient image of multi -spectral image

1 visualización (últimos 30 días)
preet
preet el 29 de Ag. de 2013
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 comentario
Amith Kamath
Amith Kamath el 29 de Ag. de 2013
Have you tried contacting the author of this code?

Iniciar sesión para comentar.

Respuestas (1)

Walter Roberson
Walter Roberson el 29 de Ag. de 2013
Have you considered using atan2() ?
  2 comentarios
preet
preet el 1 de Sept. de 2013
i m using atan()
Walter Roberson
Walter Roberson el 1 de Sept. de 2013
I am aware of that. But if the information is available then atan2() is more appropriate.

Iniciar sesión para comentar.

Categorías

Más información sobre Images en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by