34 #ifndef LSST_IP_ISR_ISR_H
35 #define LSST_IP_ISR_ISR_H
55 template <
typename ImageT,
typename MaskT=lsst::afw::image::MaskPixel>
70 for (
int y = 0;
y !=
image.getHeight(); ++
y) {
72 if ( ((*ptr).mask() & bitmask) == bitmask ) {
92 template <
typename PixelT>
100 template<
typename ImagePixelT,
typename FunctionT>
void apply(lsst::afw::image::MaskedImage< ImageT > const &image, MaskT bitmask)
lsst::afw::image::MaskedImage< ImageT >::x_iterator x_iterator
virtual ~CountMaskedPixels()
size_t maskNans(afw::image::MaskedImage< PixelT > const &mi, afw::image::MaskPixel maskVal, afw::image::MaskPixel allow=0)
Mask NANs in an image.
void fitOverscanImage(std::shared_ptr< lsst::afw::math::Function1< FunctionT > > &overscanFunction, lsst::afw::image::MaskedImage< ImagePixelT > const &overscan, double ssize=1., int sigma=1)
Remove all non-astronomical counts from the Chunk Exposure's pixels.