LSST Applications
21.0.0-147-g0e635eb1+1acddb5be5,22.0.0+052faf71bd,22.0.0+1ea9a8b2b2,22.0.0+6312710a6c,22.0.0+729191ecac,22.0.0+7589c3a021,22.0.0+9f079a9461,22.0.1-1-g7d6de66+b8044ec9de,22.0.1-1-g87000a6+536b1ee016,22.0.1-1-g8e32f31+6312710a6c,22.0.1-10-gd060f87+016f7cdc03,22.0.1-12-g9c3108e+df145f6f68,22.0.1-16-g314fa6d+c825727ab8,22.0.1-19-g93a5c75+d23f2fb6d8,22.0.1-19-gb93eaa13+aab3ef7709,22.0.1-2-g8ef0a89+b8044ec9de,22.0.1-2-g92698f7+9f079a9461,22.0.1-2-ga9b0f51+052faf71bd,22.0.1-2-gac51dbf+052faf71bd,22.0.1-2-gb66926d+6312710a6c,22.0.1-2-gcb770ba+09e3807989,22.0.1-20-g32debb5+b8044ec9de,22.0.1-23-gc2439a9a+fb0756638e,22.0.1-3-g496fd5d+09117f784f,22.0.1-3-g59f966b+1e6ba2c031,22.0.1-3-g849a1b8+f8b568069f,22.0.1-3-gaaec9c0+c5c846a8b1,22.0.1-32-g5ddfab5d3+60ce4897b0,22.0.1-4-g037fbe1+64e601228d,22.0.1-4-g8623105+b8044ec9de,22.0.1-5-g096abc9+d18c45d440,22.0.1-5-g15c806e+57f5c03693,22.0.1-7-gba73697+57f5c03693,master-g6e05de7fdc+c1283a92b8,master-g72cdda8301+729191ecac,w.2021.39
LSST Data Management Base Package
|
Namespaces | |
coaddDataIdContainer | |
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 More... | |
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 More... | |
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 More... | |
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 More... | |
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 More... | |
PYBIND11_MODULE (addToCoadd, mod) | |
PYBIND11_MODULE (copyGoodPixels, mod) | |
PYBIND11_MODULE (setCoaddEdgeBits, mod) | |
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 | ( | addToCoadd | , |
mod | |||
) |
Definition at line 56 of file addToCoadd.cc.
lsst::coadd::utils::PYBIND11_MODULE | ( | copyGoodPixels | , |
mod | |||
) |
Definition at line 52 of file copyGoodPixels.cc.
lsst::coadd::utils::PYBIND11_MODULE | ( | setCoaddEdgeBits | , |
mod | |||
) |
Definition at line 48 of file setCoaddEdgeBits.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.