phase_rad ( ImageComplex : ImagePhase : : )

Return the phase of a complex image in radians.

phase_rad computes the phase of a complex image in radians. The following formula is used:

  phase = atan(imaginary part/real part) .


Parameters

ImageComplex (input_object)
image(-array) -> object : complex
Input image in frequency domain.

ImagePhase (output_object)
image(-array) -> object : real
Phase of the image in radians.


Example
read_image(&Image,"affe");
disp_image(Image);
fft__(Image,&FFT);
phase_rad(FFT,&Phase);
disp_image(Phase);

Result

phase_rad returns TRUE if the image is of correct type. If the input is empty the behaviour can be set via set_system(::'no_object_result',<Result>:). If necessary, an exception is raised.


Possible Predecessors

fft__, fft_generic


Possible Successors

disp_image


Alternatives

phase_deg


See also

fft_inv__



Copyright © 1996-1997 MVTec Software GmbH