Template Function lsst::coadd::utils::setCoaddEdgeBits¶
Function Documentation¶
-
template<typename
WeightPixelT
>
voidlsst::coadd::utils
::
setCoaddEdgeBits
(lsst::afw::image::Mask<lsst::afw::image::MaskPixel> &coaddMask, lsst::afw::image::Image<WeightPixelT> const &weightMap)¶ set edge bits of coadd mask based on weight map
- Parameters
coaddMask
: mask of coaddweightMap
: weight map
Set pixels in the image to the edge pixel when the corresponding pixel in the weight map is zero. The edge pixel is image=nan, variance=inf, mask=NO_DATA for masked images and image=nan for plain images.
- Exceptions
pexExcept::InvalidParameterError
: if the dimensions of coaddMask and weightMap do not match.