PANDORE Version 6 | GREYC-IMAGE |
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.
Returns SUCCESS or FAILURE.
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
Author: Régis Clouard