Template Function lsst::ip::diffim::convolveAndSubtract(lsst::afw::image::MaskedImage<PixelT> const&, lsst::afw::image::MaskedImage<PixelT> const&, lsst::afw::math::Kernel const&, BackgroundT, bool)¶
Function Documentation¶
-
template<typename
PixelT
, typenameBackgroundT
>
lsst::afw::image::MaskedImage<PixelT>lsst::ip::diffim
::
convolveAndSubtract
(lsst::afw::image::MaskedImage<PixelT> const &templateImage, lsst::afw::image::MaskedImage<PixelT> const &scienceMaskedImage, lsst::afw::math::Kernel const &convolutionKernel, BackgroundT background, bool invert = true) Execute fundamental task of convolving template and subtracting it from science image.
- Note
This version accepts a MaskedImage for the template
- Parameters
templateImage
: MaskedImage to apply convolutionKernel toscienceMaskedImage
: MaskedImage from which convolved templateImage is subtractedconvolutionKernel
: Kernel to apply to templateImagebackground
: Background scalar or function to subtract after convolutioninvert
: Invert the output difference image