2D normalised correlation More...
#include <vil/vil_image_view.h>
#include <vcl_compiler.h>
#include <vcl_cassert.h>
#include <vcl_cmath.h>
#include <vcl_cstddef.h>
Go to the source code of this file.
Functions | |
template<class srcT , class kernelT , class accumT > | |
accumT | vil_norm_corr_2d_at_pt (const srcT *src_im, vcl_ptrdiff_t s_istep, vcl_ptrdiff_t s_jstep, vcl_ptrdiff_t s_pstep, const vil_image_view< kernelT > &kernel, accumT) |
Evaluate dot product between kernel and src_im. | |
template<class srcT , class destT , class kernelT , class accumT > | |
void | vil_normalised_correlation_2d (const vil_image_view< srcT > &src_im, vil_image_view< destT > &dest_im, const vil_image_view< kernelT > &kernel, accumT ac) |
Normalised cross-correlation of (pre-normalised) kernel with srcT. |
2D normalised correlation
Definition in file vil_normalised_correlation_2d.h.
accumT vil_norm_corr_2d_at_pt | ( | const srcT * | src_im, |
vcl_ptrdiff_t | s_istep, | ||
vcl_ptrdiff_t | s_jstep, | ||
vcl_ptrdiff_t | s_pstep, | ||
const vil_image_view< kernelT > & | kernel, | ||
accumT | |||
) | [inline] |
Evaluate dot product between kernel and src_im.
Assumes that the kernel has been normalised to have zero mean and unit variance
Definition at line 20 of file vil_normalised_correlation_2d.h.
void vil_normalised_correlation_2d | ( | const vil_image_view< srcT > & | src_im, |
vil_image_view< destT > & | dest_im, | ||
const vil_image_view< kernelT > & | kernel, | ||
accumT | ac | ||
) | [inline] |
Normalised cross-correlation of (pre-normalised) kernel with srcT.
dest is resized to (1+src_im.ni()-kernel.ni())x(1+src_im.nj()-kernel.nj()) (a one plane image). On exit dest(x,y) = sum_ij src_im(x+i,y+j)*kernel(i,j)/sd_under_region
Assumes that the kernel has been normalised to have zero mean and unit variance
Definition at line 69 of file vil_normalised_correlation_2d.h.