phase_radphase_radPhaseRadPhaseRadphase_rad (Operator)

Name

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

Signature

phase_rad(ImageComplex : ImagePhase : : )

Herror phase_rad(const Hobject ImageComplex, Hobject* ImagePhase)

Herror T_phase_rad(const Hobject ImageComplex, Hobject* ImagePhase)

void PhaseRad(const HObject& ImageComplex, HObject* ImagePhase)

HImage HImage::PhaseRad() const

static void HOperatorSet.PhaseRad(HObject imageComplex, out HObject imagePhase)

HImage HImage.PhaseRad()

def phase_rad(image_complex: HObject) -> HObject

Description

phase_radphase_radPhaseRadPhaseRadPhaseRadphase_rad computes the phase of a complex image in radians. The following formula is used: phase = atan2(imaginary part,real part) .

Execution Information

Parameters

ImageComplexImageComplexImageComplexImageCompleximageCompleximage_complex (input_object)  (multichannel-)image(-array) objectHImageHObjectHImageHobject (complex)

Input image in frequency domain.

ImagePhaseImagePhaseImagePhaseImagePhaseimagePhaseimage_phase (output_object)  image(-array) objectHImageHObjectHImageHobject * (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_radphase_radPhaseRadPhaseRadPhaseRadphase_rad 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>:)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>)set_system("no_object_result",<Result>). If necessary, an exception is raised.

Possible Predecessors

fft_imagefft_imageFftImageFftImageFftImagefft_image, fft_genericfft_genericFftGenericFftGenericFftGenericfft_generic, rft_genericrft_genericRftGenericRftGenericRftGenericrft_generic

Possible Successors

disp_imagedisp_imageDispImageDispImageDispImagedisp_image

Alternatives

phase_degphase_degPhaseDegPhaseDegPhaseDegphase_deg

See also

fft_image_invfft_image_invFftImageInvFftImageInvFftImageInvfft_image_inv, fft_genericfft_genericFftGenericFftGenericFftGenericfft_generic, rft_genericrft_genericRftGenericRftGenericRftGenericrft_generic

Module

Foundation