PANDORE Version 6 GREYC-IMAGE

pfftcorrelation



Performs correlation between two images.



Synopsis

pfftcorrelation [im_in1|-] [im_in2|-] [im_out|-]

Description

pfftcorrelation performs a correlation between the two input images im_in1 and im_in2. The correlation determines the degree of likeness between the two images. The first input images im_in1 size must be greater or equal than the second input image im_in2 size.

The correlation uses the frequency domain. It consists of a complex multiplication of the Fourier transform of the first input images and the complex conjugate of the second input image im_in2:

where * is the complex multiplication and conj(im) is the complex conjugate of im.

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

Detects presence of tangram pieces in the tangram.pan image:

   pextractsubimage 111 6 0 35 32 0 tangram.pan a.pan  
   pfftcorrelation tangram.pan a.pan b.pan
   plocalmaxima 8 b.pan out.pan

See also

Frequency, pftt, piftt

Prototype C++

Errc FFTCorrelation( const Img2duc &im_in1, copnst Img2duc &im_in2, Img2dsf &im_out );

Author: Régis Clouard