LSSTApplications
17.0+124,17.0+14,17.0+73,18.0.0+37,18.0.0+80,18.0.0-4-g68ffd23+4,18.1.0-1-g0001055+12,18.1.0-1-g03d53ef+5,18.1.0-1-g1349e88+55,18.1.0-1-g2505f39+44,18.1.0-1-g5315e5e+4,18.1.0-1-g5e4b7ea+14,18.1.0-1-g7e8fceb+4,18.1.0-1-g85f8cd4+48,18.1.0-1-g8ff0b9f+4,18.1.0-1-ga2c679d+1,18.1.0-1-gd55f500+35,18.1.0-10-gb58edde+2,18.1.0-11-g0997b02+4,18.1.0-13-gfe4edf0b+12,18.1.0-14-g259bd21+21,18.1.0-19-gdb69f3f+2,18.1.0-2-g5f9922c+24,18.1.0-2-gd3b74e5+11,18.1.0-2-gfbf3545+32,18.1.0-26-g728bddb4+5,18.1.0-27-g6ff7ca9+2,18.1.0-3-g52aa583+25,18.1.0-3-g8ea57af+9,18.1.0-3-gb69f684+42,18.1.0-3-gfcaddf3+6,18.1.0-32-gd8786685a,18.1.0-4-gf3f9b77+6,18.1.0-5-g1dd662b+2,18.1.0-5-g6dbcb01+41,18.1.0-6-gae77429+3,18.1.0-7-g9d75d83+9,18.1.0-7-gae09a6d+30,18.1.0-9-gc381ef5+4,w.2019.45
LSSTDataManagementBasePackage
|
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 | ( | setCoaddEdgeBits | , |
mod | |||
) |
Definition at line 48 of file setCoaddEdgeBits.cc.
lsst::coadd::utils::PYBIND11_MODULE | ( | copyGoodPixels | , |
mod | |||
) |
Definition at line 52 of file copyGoodPixels.cc.
lsst::coadd::utils::PYBIND11_MODULE | ( | addToCoadd | , |
mod | |||
) |
Definition at line 56 of file addToCoadd.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.