Herror ::phase_deg (
    Hobject ImageComplex,
    Hobject *ImagePhase
)
HImage HImage::PhaseDeg (
    void
) const
HImageArray HImageArray::PhaseDeg (
    void
) const

Return the phase of a complex image in degrees.

::phase_deg computes the phase of a complex image in degrees. The following formula is used:

  phase = atan(imaginary part/real part) / PI * 180.


Parameters

ImageComplex (input_object)
image(-array) -> Hobject: HImage(Array) ( complex )
Input image in frequency domain.

ImagePhase (output_object)
image(-array) -> Hobject * : HImage(Array) ( direction )
Phase of the image in degrees.


Example
read_image(&Image,"affe");
disp_image(Image,WindowHandle);
fft_image(Image,&FFT);
phase_deg(FFT,&Phase);
disp_image(Phase,WindowHandle);

Result

::phase_deg returns H_MSG_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 handling is raised.


Possible Predecessors

::fft_image, ::fft_generic


Possible Successors

::disp_image


Alternatives

::phase_rad


See also

::fft_image_inv


Module

Image filters



Copyright © 1996-2002 MVTec Software GmbH