Functions
contrib/mul/vimt/algo/vimt_correlate_2d.h File Reference

2D Convolution More...

#include <vil/algo/vil_correlate_2d.h>
#include <vimt/vimt_image_2d_of.h>
#include <vgl/vgl_fwd.h>

Go to the source code of this file.

Functions

template<class srcT , class destT , class kernelT , class accumT >
void vimt_correlate_2d (const vimt_image_2d_of< srcT > &src_im, vimt_image_2d_of< destT > &dest_im, const vil_image_view< kernelT > &kernel, vgl_point_2d< double > kernel_ref_pt, accumT ac)
 Correlate kernel with src_im, keeping track of transformations.

Detailed Description

2D Convolution

Author:
Tim Cootes

Definition in file vimt_correlate_2d.h.


Function Documentation

template<class srcT , class destT , class kernelT , class accumT >
void vimt_correlate_2d ( const vimt_image_2d_of< srcT > &  src_im,
vimt_image_2d_of< destT > &  dest_im,
const vil_image_view< kernelT > &  kernel,
vgl_point_2d< double >  kernel_ref_pt,
accumT  ac 
) [inline]

Correlate kernel with src_im, keeping track of transformations.

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)

dest_im.world2im() is set up so that vimt_bilin_interp(dest_im,p) is the convolution of the kernel with the source image when the kernel's reference point is placed at p in src_im

Definition at line 24 of file vimt_correlate_2d.h.