2D Convolution More...
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. |
2D Convolution
Definition in file vimt_correlate_2d.h.
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.