Template Function lsst::coadd::utils::copyGoodPixels(lsst::afw::image::Image<ImagePixelT>&, lsst::afw::image::Image<ImagePixelT> const&)¶
Function Documentation¶
-
template<typename
ImagePixelT
>
intlsst::coadd::utils
::
copyGoodPixels
(lsst::afw::image::Image<ImagePixelT> &destImage, lsst::afw::image::Image<ImagePixelT> const &srcImage) copy good pixels from one image to another
- Parameters
destImage
: image to be modifiedsrcImage
: image to copy
Good pixels are those that are not NaN (thus they do include +/- inf).
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