Skip to content

phase_radPhaseRadPhaseRadphase_radphase_rad🔗

Short description🔗

phase_radPhaseRadPhaseRadphase_radphase_rad — Return the phase of a complex image in radians.

Signature🔗

phase_rad( image ImageComplex, out image ImagePhase )void PhaseRad( const HObject& ImageComplex, HObject* ImagePhase )static void HOperatorSet.PhaseRad( HObject imageComplex, out HObject imagePhase )def phase_rad( image_complex: HObject ) -> HObject

Herror phase_rad( const Hobject ImageComplex, Hobject* ImagePhase )

Herror T_phase_rad( const Hobject ImageComplex, Hobject* ImagePhase )

HImage HImage::PhaseRad( ) const

HImage HImage.PhaseRad( )

Description🔗

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

\[\begin{eqnarray*} \textit{phase} = \textrm{atan2}(\textit{imaginary part}, \textit{real part}) \enspace . \end{eqnarray*}\]

Execution information🔗

Execution information
  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).

  • Multithreading scope: global (may be called from any thread).

  • Automatically parallelized on tuple level.

  • Automatically parallelized on channel level.

  • Automatically parallelized on domain level.

Parameters🔗

ImageCompleximageCompleximage_complex (input_object) (multichannel-)image(-array) → object (complex)HObject (complex)HImage (complex)HObject (complex)Hobject (complex)

Input image in frequency domain.

ImagePhaseimagePhaseimage_phase (output_object) image(-array) → object (real)HObject (real)HImage (real)HObject (real)Hobject * (real)

Phase of the image in radians.

Example🔗

(C)

read_image(&Image,"monkey")\;
disp_image(Image,WindowHandle)\;
fft_image(Image,&FFT)\;
phase_rad(FFT,&Phase)\;
disp_image(Phase,WindowHandle)\;

Result🔗

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

Combinations with other operators🔗

Combinations

Possible predecessors

fft_imageFftImage, fft_genericFftGeneric, rft_genericRftGeneric

Possible successors

disp_imageDispImage

Alternatives

phase_degPhaseDeg

See also

fft_image_invFftImageInv, fft_genericFftGeneric, rft_genericRftGeneric

Module🔗

Foundation