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 | |
coaddDataIdContainer | |
makeBitMask | |
version | |
Functions | |
template<typename CoaddPixelT , typename WeightPixelT > | |
lsst::afw::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::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 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... | |
lsst::afw::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 126 of file addToCoadd.cc.
lsst::afw::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 138 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 115 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 125 of file copyGoodPixels.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 40 of file setCoaddEdgeBits.cc.