Template Function lsst::ip::isr::maskNans¶
Function Documentation¶
-
template<typename
PixelT
>
size_tlsst::ip::isr
::
maskNans
(afw::image::MaskedImage<PixelT> const &mi, afw::image::MaskPixel maskVal, afw::image::MaskPixel allow = 0)¶ - Parameters
mi
: Input imagemaskVal
: Bit mask value to give a NaNallow
: Retain NANs with this bit mask (0 to mask all NANs)
Mask NANs in an image
NANs in the image or variance that are not already masked by the ‘allow’ value are masked with the ‘maskVal’.
- Return
Number of pixels masked