Functions
vil_convolve_2d.h File Reference

2D Convolution More...

#include <vil/vil_flip.h>
#include <vil/algo/vil_correlate_2d.h>

Go to the source code of this file.

Functions

template<class srcT , class destT , class kernelT , class accumT >
void vil_convolve_2d (const vil_image_view< srcT > &src_im, vil_image_view< destT > &dest_im, const vil_image_view< kernelT > &kernel, accumT ac)
 Convolve kernel with srcT. More...
 

Detailed Description

2D Convolution

Author
Tim Cootes

Definition in file vil_convolve_2d.h.

Function Documentation

◆ vil_convolve_2d()

template<class srcT , class destT , class kernelT , class accumT >
void vil_convolve_2d ( const vil_image_view< srcT > &  src_im,
vil_image_view< destT > &  dest_im,
const vil_image_view< kernelT > &  kernel,
accumT  ac 
)
inline

Convolve 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)

Definition at line 22 of file vil_convolve_2d.h.