Template Function lsst::coadd::utils::copyGoodPixels(lsst::afw::image::MaskedImage<ImagePixelT, lsst::afw::image::MaskPixel, lsst::afw::image::VariancePixel>&, lsst::afw::image::MaskedImage<ImagePixelT, lsst::afw::image::MaskPixel, lsst::afw::image::VariancePixel> const&, lsst::afw::image::MaskPixel const)¶
Function Documentation¶
-
template<typename
ImagePixelT
>
intlsst::coadd::utils
::
copyGoodPixels
(lsst::afw::image::MaskedImage<ImagePixelT, lsst::afw::image::MaskPixel, lsst::afw::image::VariancePixel> &destImage, lsst::afw::image::MaskedImage<ImagePixelT, lsst::afw::image::MaskPixel, lsst::afw::image::VariancePixel> const &srcImage, lsst::afw::image::MaskPixel const badPixelMask) copy good pixels from one masked image to another
- Parameters
destImage
: image to be modifiedsrcImage
: image to copybadPixelMask
: skip input pixel if src mask & badPixelMask != 0
Good pixels are those for which mask & badPixelMask == 0.
Only the overlapping pixels (relative to the parent) are copied; thus the images do not have to be the same size.
- Return
number of pixels copied