File WarpAtOnePoint.h

namespace lsst

Class for a simple mapping implementing a generic AstrometryTransform.

Remove all non-astronomical counts from the Chunk Exposure’s pixels.

Forward declarations for lsst::utils::Cache

For details on the Cache class, see the Cache.h file.

It uses a template rather than a pointer so that the derived classes can use the specifics of the transform. The class simplePolyMapping overloads a few routines.

A base class for image defects

Numeric constants used by the Integrate.h integrator routines.

Compute Image Statistics

Note

Gauss-Kronrod-Patterson quadrature coefficients for use in quadpack routine qng. These coefficients were calculated with 101 decimal digit arithmetic by L. W. Fullerton, Bell Labs, Nov 1981.

Note

The Statistics class itself can only handle lsst::afw::image::MaskedImage() types. The philosophy has been to handle other types by making them look like lsst::afw::image::MaskedImage() and reusing that code. Users should have no need to instantiate a Statistics object directly, but should use the overloaded makeStatistics() factory functions.

namespace afw
namespace math
namespace detail
template<typename DestImageT, typename SrcImageT>
class WarpAtOnePoint
#include <WarpAtOnePoint.h>

A functor that computes one warped pixel

Public Functions

WarpAtOnePoint(SrcImageT const &srcImage, WarpingControl const &control, typename DestImageT::SinglePixel padValue)
bool operator()(typename DestImageT::x_iterator &destXIter, lsst::geom::Point2D const &srcPos, double relativeArea, lsst::afw::image::detail::Image_tag)

Compute one warped pixel, Image specialization

The Image specialization ignores the mask warping kernel, even if present

bool operator()(typename DestImageT::x_iterator &destXIter, lsst::geom::Point2D const &srcPos, double relativeArea, lsst::afw::image::detail::MaskedImage_tag)

Compute one warped pixel, MaskedImage specialization

The MaskedImage specialization uses the mask warping kernel, if present, to compute the mask plane; otherwise it uses the normal kernel to compute the mask plane.

Private Functions

double _setFracIndex(double xFrac, double yFrac)

Set parameters of kernel (and mask kernel, if present) and update X and Y values

Return

sum of kernel

Private Members

SrcImageT _srcImage
std::shared_ptr<lsst::afw::math::SeparableKernel> _kernelPtr
std::shared_ptr<lsst::afw::math::SeparableKernel> _maskKernelPtr
bool _hasMaskKernel
lsst::geom::Point2I _kernelCtr
lsst::geom::Point2I _maskKernelCtr
lsst::afw::image::MaskPixel _growFullMask
std::vector<double> _xList
std::vector<double> _yList
std::vector<double> _maskXList
std::vector<double> _maskYList
DestImageT::SinglePixel _padValue
lsst::geom::Box2I const _srcGoodBBox