LSSTApplications
10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
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 |