NAME

fourier_ncc_template_matrix - Computes the normalized cross correlation (ncc) of a template pointed to by

SYNOPSIS

#include "m2/m2_ncc.h"

Example compile flags (system dependent):
  -DLINUX_X86_64 -DLINUX_X86_64_OPTERON  -DGNU_COMPILER 
   -I/home/kobus/include
   -L/home/kobus/misc/load/linux_x86_64_opteron -L/usr/lib/x86_64-linux-gnu
  -lKJB                               -lfftw3  -lgsl -lgslcblas -ljpeg  -lSVM -lstdc++                    -lpthread -lSLATEC -lg2c    -lacml -lacml_mv -lblas -lg2c      -lncursesw 


int fourier_ncc_template_matrix
(
	Matrix **out_mpp,
	const Matrix *in_mp,
	const Matrix *template_mp
);

DESCRIPTION

template_mp with the corresponding patch at each element of a matrix. This routine computes the normalized cross correlation of a template with a matrix. The fourier transform and the running sum techniques are used to speed up the routine. It is highly recommended when the the template size is large. The result is put into *out_mpp.

RETURNS

NO_ERROR on sucess and ERROR on failure.

DISCLAIMER

This software is not adequatedly tested. It is recomended that results are checked independantly where appropriate.

AUTHOR

Quanfu Fan and Kobus Barnard

DOCUMENTER

Quanfu Fan and Kobus Barnard

SEE ALSO

fourier_convolve_matrix , fourier_convolve_image , fourier_ncc_template_mvector , ncc_matrix , ncc_mvector