LSST Applications 27.0.0,g0265f82a02+469cd937ee,g02d81e74bb+21ad69e7e1,g1470d8bcf6+cbe83ee85a,g2079a07aa2+e67c6346a6,g212a7c68fe+04a9158687,g2305ad1205+94392ce272,g295015adf3+81dd352a9d,g2bbee38e9b+469cd937ee,g337abbeb29+469cd937ee,g3939d97d7f+72a9f7b576,g487adcacf7+71499e7cba,g50ff169b8f+5929b3527e,g52b1c1532d+a6fc98d2e7,g591dd9f2cf+df404f777f,g5a732f18d5+be83d3ecdb,g64a986408d+21ad69e7e1,g858d7b2824+21ad69e7e1,g8a8a8dda67+a6fc98d2e7,g99cad8db69+f62e5b0af5,g9ddcbc5298+d4bad12328,ga1e77700b3+9c366c4306,ga8c6da7877+71e4819109,gb0e22166c9+25ba2f69a1,gb6a65358fc+469cd937ee,gbb8dafda3b+69d3c0e320,gc07e1c2157+a98bf949bb,gc120e1dc64+615ec43309,gc28159a63d+469cd937ee,gcf0d15dbbd+72a9f7b576,gdaeeff99f8+a38ce5ea23,ge6526c86ff+3a7c1ac5f1,ge79ae78c31+469cd937ee,gee10cc3b42+a6fc98d2e7,gf1cff7945b+21ad69e7e1,gfbcc870c63+9a11dc8c8f
LSST Data Management Base Package
|
Namespaces | |
namespace | version |
Functions | |
template<typename CoaddPixelT , typename WeightPixelT > | |
lsst::geom::Box2I | addToCoadd (lsst::afw::image::Image< CoaddPixelT > &coadd, lsst::afw::image::Image< WeightPixelT > &weightMap, lsst::afw::image::Image< CoaddPixelT > const &image, WeightPixelT weight) |
add good pixels from an image to a coadd and associated weight map | |
template<typename CoaddPixelT , typename WeightPixelT > | |
lsst::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 image and associated weight map | |
template<typename ImagePixelT > | |
int | copyGoodPixels (lsst::afw::image::Image< ImagePixelT > &destImage, lsst::afw::image::Image< ImagePixelT > const &srcImage) |
copy good pixels from one image to another | |
template<typename ImagePixelT > | |
int | copyGoodPixels (lsst::afw::image::MaskedImage< ImagePixelT, lsst::afw::image::MaskPixel, lsst::afw::image::VariancePixel > &destImage, lsst::afw::image::MaskedImage< ImagePixelT, lsst::afw::image::MaskPixel, lsst::afw::image::VariancePixel > const &srcImage, lsst::afw::image::MaskPixel const badPixelMask) |
copy good pixels from one masked image to another | |
template<typename WeightPixelT > | |
void | setCoaddEdgeBits (lsst::afw::image::Mask< lsst::afw::image::MaskPixel > &coaddMask, lsst::afw::image::Image< WeightPixelT > const &weightMap) |
set edge bits of coadd mask based on weight map | |
void | wrapAddtoCoadd (WrapperCollection &wrappers) |
void | wrapCopyGoodPixels (WrapperCollection &wrappers) |
void | wrapSetCoaddEdgeBits (WrapperCollection &wrappers) |
PYBIND11_MODULE (_coaddUtilsLib, mod) | |
lsst.coadd.utils
lsst::geom::Box2I lsst::coadd::utils::addToCoadd | ( | lsst::afw::image::Image< CoaddPixelT > & | coadd, |
lsst::afw::image::Image< WeightPixelT > & | weightMap, | ||
lsst::afw::image::Image< CoaddPixelT > const & | image, | ||
WeightPixelT | weight ) |
add good pixels from an image to a coadd and associated weight map
The images are assumed to be registered to the same wcs and parent origin, thus: coadd[i+coadd.x0, j+coadd.y0] += image[i+image.x0, j+image.y0] weightMap[i+weightMap.x0, j+weightMap.y0] += weight for all good image pixels that overlap a coadd pixel. Good pixels are those that are not NaN (thus they do include +/- inf).
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; this is the sum of weights of all images contributing each pixel of the coadd |
image | image to add to coadd | |
weight | relative weight of this image |
Definition at line 127 of file addToCoadd.cc.
lsst::geom::Box2I lsst::coadd::utils::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 image and associated weight map
The images are assumed to be registered to the same wcs and parent origin, thus: coadd[i+coadd.x0, j+coadd.y0] += image[i+image.x0, j+image.y0] weightMap[i+weightMap.x0, j+weightMap.y0] += weight for all good image pixels that overlap a coadd pixel. Good pixels are those for which mask & badPixelMask == 0.
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; this is the sum of weights of all images contributing each pixel of the coadd |
maskedImage | masked image to add to coadd | |
badPixelMask | skip input pixel if input mask & badPixelMask !=0 | |
weight | relative weight of this image |
Definition at line 139 of file addToCoadd.cc.
int lsst::coadd::utils::copyGoodPixels | ( | lsst::afw::image::Image< ImagePixelT > & | destImage, |
lsst::afw::image::Image< ImagePixelT > const & | srcImage ) |
copy good pixels from one image to another
Good pixels are those that are not NaN (thus they do include +/- inf).
Only the overlapping pixels (relative to the parent) are copied; thus the images do not have to be the same size.
[in,out] | destImage | image to be modified |
srcImage | image to copy |
Definition at line 116 of file copyGoodPixels.cc.
int lsst::coadd::utils::copyGoodPixels | ( | lsst::afw::image::MaskedImage< ImagePixelT, lsst::afw::image::MaskPixel, lsst::afw::image::VariancePixel > & | destImage, |
lsst::afw::image::MaskedImage< ImagePixelT, lsst::afw::image::MaskPixel, lsst::afw::image::VariancePixel > const & | srcImage, | ||
lsst::afw::image::MaskPixel const | badPixelMask ) |
copy good pixels from one masked image to another
Good pixels are those for which mask & badPixelMask == 0.
Only the overlapping pixels (relative to the parent) are copied; thus the images do not have to be the same size.
[in,out] | destImage | image to be modified |
srcImage | image to copy | |
badPixelMask | skip input pixel if src mask & badPixelMask != 0 |
Definition at line 126 of file copyGoodPixels.cc.
lsst::coadd::utils::PYBIND11_MODULE | ( | _coaddUtilsLib | , |
mod | ) |
Definition at line 36 of file _coaddUtilsLib.cc.
void lsst::coadd::utils::setCoaddEdgeBits | ( | lsst::afw::image::Mask< lsst::afw::image::MaskPixel > & | coaddMask, |
lsst::afw::image::Image< WeightPixelT > const & | weightMap ) |
set edge bits of coadd mask based on weight map
Set pixels in the image to the edge pixel when the corresponding pixel in the weight map is zero. The edge pixel is image=nan, variance=inf, mask=NO_DATA for masked images and image=nan for plain images.
pexExcept::InvalidParameterError | if the dimensions of coaddMask and weightMap do not match. |
[in,out] | coaddMask | mask of coadd |
weightMap | weight map |
Definition at line 42 of file setCoaddEdgeBits.cc.
void lsst::coadd::utils::wrapAddtoCoadd | ( | WrapperCollection & | wrappers | ) |
Definition at line 57 of file addToCoadd.cc.
void lsst::coadd::utils::wrapCopyGoodPixels | ( | WrapperCollection & | wrappers | ) |
Definition at line 53 of file copyGoodPixels.cc.
void lsst::coadd::utils::wrapSetCoaddEdgeBits | ( | WrapperCollection & | wrappers | ) |
Definition at line 49 of file setCoaddEdgeBits.cc.