PANDORE Version 6 GREYC-IMAGE

pphase



Computes phase between 2 images.



Synopsis

pphase [-m mask] [im_in1|-] [im_in2|-] [im_out|-]

Description

pphase computes the phase between 2 images considered as a unique complex image.

The phase between 2 images is calculated as follows:

   pixel(im_out) = atan(pixel(im_in2) / pixel(im_in1))

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

Converts an image of a square from the spatial domain to the frequency domain and reciprocally:

   pshapedesign 256 256 0 2 20 0 square.pan
   pshapedesign 256 256 0 0  0 0 empty.pan
   pfft square.pan empty.pan real.pan imaginary.pan
   pmodulus real.pan imaginary.pan modulus.pan
   pphase real.pan imaginary.pan phase.pan
   pifft real.pan imaginary.pan square1.pan empty1.pan
   plineartransform 0 0 255 square1.pan square2.pan
   pim2uc square2.pan newsquare.pan

See also

Frequency, pmodulus

C++ Prototype

Errc PPhase( const Img2duc &im_in1, const Img2duc &im_in2, Img2duc &im_out );

Version française

Calcul de la phase entre deux images.


Author: Régis Clouard