Template Function lsst::afw::math::convolveAtAPoint(typename InImageT::const_xy_locator, typename lsst::afw::image::Image<lsst::afw::math::Kernel::Pixel>::const_xy_locator, int, int)

Function Documentation

template<typename OutImageT, typename InImageT>
OutImageT::SinglePixel lsst::afw::math::convolveAtAPoint(typename InImageT::const_xy_locator inImageLocator, typename lsst::afw::image::Image<lsst::afw::math::Kernel::Pixel>::const_xy_locator kernelLocator, int kWidth, int kHeight)

Apply convolution kernel to an image at one point

Note

This subroutine sacrifices convenience for performance. The user is expected to figure out the kernel center and adjust the supplied pixel accessors accordingly. For an example of how to do this see convolve().

Parameters
  • inImageLocator: locator for image pixel that overlaps pixel (0,0) of kernel (the origin of the kernel, not its center)

  • kernelLocator: locator for (0,0) pixel of kernel (the origin of the kernel, not its center)

  • kWidth: number of columns in kernel

  • kHeight: number of rows in kernel