3D normalised correlation More...
#include <vcl_compiler.h>
#include <vcl_cassert.h>
#include <vcl_cmath.h>
#include <vil3d/vil3d_image_view.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_kstep, vcl_ptrdiff_t s_pstep, const vil3d_image_view< kernelT > &kernel, accumT) |
Evaluate dot product between kernel and src_im. | |
template<class srcT , class destT , class kernelT , class accumT > | |
void | vil3d_normalised_correlation_3d (const vil3d_image_view< srcT > &src_im, vil3d_image_view< destT > &dest_im, const vil3d_image_view< kernelT > &kernel, accumT ac) |
Normalised cross-correlation of (pre-normalised) kernel with srcT. |
3D normalised correlation
Definition in file vil3d_normalised_correlation_3d.h.
void vil3d_normalised_correlation_3d | ( | const vil3d_image_view< srcT > & | src_im, |
vil3d_image_view< destT > & | dest_im, | ||
const vil3d_image_view< kernelT > & | kernel, | ||
accumT | ac | ||
) | [inline] |
Normalised cross-correlation of (pre-normalised) kernel with srcT.
Each dimension of dest is resized to (1+src_im.nX()-kernel.nX()) (a one plane image). On exit dest(x,y,z) = sum_ijk src_im(x+i,y+j,y+k)*kernel(i,j,k)/sd_under_region
Assumes that the kernel has been normalised to have zero mean and unit variance
Definition at line 79 of file vil3d_normalised_correlation_3d.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_kstep, | ||
vcl_ptrdiff_t | s_pstep, | ||
const vil3d_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 19 of file vil3d_normalised_correlation_3d.h.