Template Function lsst::afw::math::statisticsStack(std::vector<std::shared_ptr<lsst::afw::image::MaskedImage<PixelT>>>&, Property, StatisticsControl const&, std::vector<lsst::afw::image::VariancePixel> const&, image::MaskPixel, std::vector<std::pair<image::MaskPixel, image::MaskPixel>> const&)

Function Documentation

template<typename PixelT>
std::shared_ptr<lsst::afw::image::MaskedImage<PixelT>> lsst::afw::math::statisticsStack(std::vector<std::shared_ptr<lsst::afw::image::MaskedImage<PixelT>>> &images, Property flags, StatisticsControl const &sctrl, std::vector<lsst::afw::image::VariancePixel> const &wvector, image::MaskPixel clipped, std::vector<std::pair<image::MaskPixel, image::MaskPixel>> const &maskMap)

A function to compute some statistics of a stack of Masked Images

If none of the input images are valid for some pixel, the afwMath::StatisticsControl::getNoGoodPixelsMask() bit(s) are set.

Parameters
  • [in] images: MaskedImages to process.

  • [in] flags: Statistics requested.

  • [in] sctrl: Control structure.

  • [in] wvector: Vector of weights.

  • [in] clipped: Mask to set for pixels that were clipped (NOT rejected due to masks).

  • [in] maskMap: Vector of pairs of mask pixel values; any pixel on an input with any of the bits in .first will result in all of the bits in .second being set on the corresponding pixel on the output.

All the work is done in the function computeMaskedImageStack.