LSSTApplications
10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
LSSTDataManagementBasePackage
|
Namespaces | |
coadd | |
version | |
Functions | |
template<typename CoaddPixelT , typename WeightPixelT > | |
lsst::afw::geom::Box2I | addToCoadd (lsst::afw::image::MaskedImage< CoaddPixelT, lsst::afw::image::MaskPixel, lsst::afw::image::VariancePixel > &coadd, lsst::afw::image::Image< WeightPixelT > &weightMap, lsst::afw::image::MaskedImage< CoaddPixelT, lsst::afw::image::MaskPixel, lsst::afw::image::VariancePixel > const &maskedImage, lsst::afw::image::MaskPixel const badPixelMask, WeightPixelT weight) |
add good pixels from a masked image to a coadd and associated weight map using the chi squared algorithm More... | |
lsst::afw::geom::Box2I lsst::coadd::chisquared::addToCoadd | ( | lsst::afw::image::MaskedImage< CoaddPixelT, lsst::afw::image::MaskPixel, lsst::afw::image::VariancePixel > & | coadd, |
lsst::afw::image::Image< WeightPixelT > & | weightMap, | ||
lsst::afw::image::MaskedImage< CoaddPixelT, lsst::afw::image::MaskPixel, lsst::afw::image::VariancePixel > const & | maskedImage, | ||
lsst::afw::image::MaskPixel const | badPixelMask, | ||
WeightPixelT | weight | ||
) |
add good pixels from a masked image to a coadd and associated weight map using the chi squared algorithm
For good pixels (image.mask & badPixelMask == 0), coadd and weightMap are altered as follows: coadd.image += image.image**2 / image.variance coadd.mask |= image.mask weightMap += weight For bad pixels, coadd and weightMap are not altered.
Note that coadd.variance is not altered.
pexExcept::InvalidParameterError | if coadd and weightMap dimensions or xy0 do not match. |
[in,out] | coadd | coadd to be modified |
[in,out] | weightMap | weight map to be modified |
maskedImage | masked image to add to coadd | |
badPixelMask | skip input pixel if input mask & badPixelMask !=0 | |
weight | relative weight of this image |