Template Function lsst::ip::isr::maskNans

Function Documentation

template<typename PixelT>
size_t lsst::ip::isr::maskNans(afw::image::MaskedImage<PixelT> const &mi, afw::image::MaskPixel maskVal, afw::image::MaskPixel allow = 0)

Parameters
  • mi: Input image

  • maskVal: Bit mask value to give a NaN

  • allow: 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