|
lsst.afw
13.0-91-g2a3e2ee
|
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 234 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 242 of file warpExposure.h.
|
inlinevirtual |
Definition at line 264 of file warpExposure.h.
|
inline |
get the cache size for the interpolation kernel(s)
Definition at line 269 of file warpExposure.h.
|
inline |
get mask bits to grow to full width of image/variance kernel
Definition at line 349 of file warpExposure.h.
|
inline |
get the interpolation length (pixels)
Definition at line 287 of file warpExposure.h.
| std::shared_ptr< SeparableKernel > lsst::afw::math::WarpingControl::getMaskWarpingKernel | ( | ) | const |
get the mask warping kernel
Definition at line 202 of file warpExposure.cc.
| std::shared_ptr< SeparableKernel > lsst::afw::math::WarpingControl::getWarpingKernel | ( | ) | const |
get the warping kernel
Definition at line 181 of file warpExposure.cc.
|
inline |
return true if there is a mask kernel
Definition at line 329 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 279 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 354 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 297 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 220 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 211 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 193 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 188 of file warpExposure.cc.
1.8.5