LSSTApplications
18.0.0+106,18.0.0+50,19.0.0,19.0.0+1,19.0.0+10,19.0.0+11,19.0.0+13,19.0.0+17,19.0.0+2,19.0.0-1-g20d9b18+6,19.0.0-1-g425ff20,19.0.0-1-g5549ca4,19.0.0-1-g580fafe+6,19.0.0-1-g6fe20d0+1,19.0.0-1-g7011481+9,19.0.0-1-g8c57eb9+6,19.0.0-1-gb5175dc+11,19.0.0-1-gdc0e4a7+9,19.0.0-1-ge272bc4+6,19.0.0-1-ge3aa853,19.0.0-10-g448f008b,19.0.0-12-g6990b2c,19.0.0-2-g0d9f9cd+11,19.0.0-2-g3d9e4fb2+11,19.0.0-2-g5037de4,19.0.0-2-gb96a1c4+3,19.0.0-2-gd955cfd+15,19.0.0-3-g2d13df8,19.0.0-3-g6f3c7dc,19.0.0-4-g725f80e+11,19.0.0-4-ga671dab3b+1,19.0.0-4-gad373c5+3,19.0.0-5-ga2acb9c+2,19.0.0-5-gfe96e6c+2,w.2020.01
LSSTDataManagementBasePackage
|
Parameters to control convolution. More...
#include <warpExposure.h>
Public Member Functions | |
WarpingControl (std::string const &warpingKernelName, std::string const &maskWarpingKernelName="", int cacheSize=0, int interpLength=0, lsst::afw::image::MaskPixel growFullMask=0) | |
Construct a WarpingControl object. More... | |
virtual | ~WarpingControl () |
int | getCacheSize () const |
get the cache size for the interpolation kernel(s) More... | |
void | setCacheSize (int cacheSize) |
set the cache size for the interpolation kernel(s) More... | |
int | getInterpLength () const |
get the interpolation length (pixels) More... | |
void | setInterpLength (int interpLength) |
set the interpolation length More... | |
std::shared_ptr< SeparableKernel > | getWarpingKernel () const |
get the warping kernel More... | |
void | setWarpingKernelName (std::string const &warpingKernelName) |
set the warping kernel by name More... | |
void | setWarpingKernel (SeparableKernel const &warpingKernel) |
set the warping kernel More... | |
std::shared_ptr< SeparableKernel > | getMaskWarpingKernel () const |
get the mask warping kernel More... | |
bool | hasMaskWarpingKernel () const |
return true if there is a mask kernel More... | |
void | setMaskWarpingKernelName (std::string const &maskWarpingKernelName) |
set or clear the mask warping kernel by name More... | |
void | setMaskWarpingKernel (SeparableKernel const &maskWarpingKernel) |
set the mask warping kernel More... | |
lsst::afw::image::MaskPixel | getGrowFullMask () const |
get mask bits to grow to full width of image/variance kernel More... | |
void | setGrowFullMask (lsst::afw::image::MaskPixel growFullMask) |
set mask bits to grow to full width of image/variance kernel More... | |
Parameters to control convolution.
Definition at line 250 of file warpExposure.h.
|
inlineexplicit |
Construct a WarpingControl object.
pex::exceptions::InvalidParameterError | if the warping kernel is smaller than the mask warping kernel. |
warpingKernelName | name of warping kernel; used as the argument to makeWarpingKernel |
maskWarpingKernelName | name of warping kernel used for the mask plane; if "" then the regular warping kernel is used. Intended so one can use a bilinear kernel or other compact kernel for the mask plane to avoid smearing mask bits too far. The theory is that bad pixels are already interpolated over, so we don't need to worry about bad values spreading very far. |
cacheSize | cache size for warping kernel; no cache if 0 (used as the argument to the warping kernels' computeCache method) |
interpLength | distance over which the WCS can be linearly interpolated |
growFullMask | mask bits to grow to full width of image/variance kernel |
Definition at line 258 of file warpExposure.h.
|
inlinevirtual |
Definition at line 280 of file warpExposure.h.
|
inline |
get the cache size for the interpolation kernel(s)
Definition at line 285 of file warpExposure.h.
|
inline |
get mask bits to grow to full width of image/variance kernel
Definition at line 365 of file warpExposure.h.
|
inline |
get the interpolation length (pixels)
Definition at line 303 of file warpExposure.h.
std::shared_ptr< SeparableKernel > lsst::afw::math::WarpingControl::getMaskWarpingKernel | ( | ) | const |
get the mask warping kernel
Definition at line 200 of file warpExposure.cc.
std::shared_ptr< SeparableKernel > lsst::afw::math::WarpingControl::getWarpingKernel | ( | ) | const |
get the warping kernel
Definition at line 179 of file warpExposure.cc.
|
inline |
return true if there is a mask kernel
Definition at line 345 of file warpExposure.h.
|
inline |
set the cache size for the interpolation kernel(s)
A value of 0 disables the cache for maximum accuracy. 10,000 typically results in a warping error of a fraction of a count. 100,000 typically results in a warping error of less than 0.01 count. Note the new cache is not computed until getWarpingKernel or getMaskWarpingKernel is called.
cacheSize | cache size |
Definition at line 295 of file warpExposure.h.
|
inline |
set mask bits to grow to full width of image/variance kernel
growFullMask | mask bits to grow to full width of image/variance kernel |
Definition at line 370 of file warpExposure.h.
|
inline |
set the interpolation length
Interpolation length is the distance over which the WCS can be linearly interpolated, in pixels:
interpLength | interpolation length (pixels) |
Definition at line 313 of file warpExposure.h.
void lsst::afw::math::WarpingControl::setMaskWarpingKernel | ( | SeparableKernel const & | maskWarpingKernel | ) |
set the mask warping kernel
maskWarpingKernel | mask warping kernel |
Definition at line 218 of file warpExposure.cc.
void lsst::afw::math::WarpingControl::setMaskWarpingKernelName | ( | std::string const & | maskWarpingKernelName | ) |
set or clear the mask warping kernel by name
maskWarpingKernelName | name of mask warping kernel; use "" to clear the kernel |
Definition at line 209 of file warpExposure.cc.
void lsst::afw::math::WarpingControl::setWarpingKernel | ( | SeparableKernel const & | warpingKernel | ) |
set the warping kernel
lsst::pex::exceptions::InvalidParameterError | if new kernel pointer is empty. |
warpingKernel | warping kernel |
Definition at line 191 of file warpExposure.cc.
void lsst::afw::math::WarpingControl::setWarpingKernelName | ( | std::string const & | warpingKernelName | ) |
set the warping kernel by name
warpingKernelName | name of warping kernel |
Definition at line 186 of file warpExposure.cc.