File AssessSpatialKernelVisitor.h

Declaration of AssessSpatialKernelVisitor.

Author

Andrew Becker, University of Washington

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 ip
namespace diffim
namespace detail

Functions

template<typename PixelT>
std::shared_ptr<AssessSpatialKernelVisitor<PixelT>> makeAssessSpatialKernelVisitor(std::shared_ptr<lsst::afw::math::LinearCombinationKernel> spatialKernel, lsst::afw::math::Kernel::SpatialFunctionPtr spatialBackground, lsst::daf::base::PropertySet const &ps)
template<typename PixelT>
class AssessSpatialKernelVisitor : public lsst::afw::math::CandidateVisitor

Public Types

typedef std::shared_ptr<AssessSpatialKernelVisitor<PixelT>> Ptr

Public Functions

AssessSpatialKernelVisitor(std::shared_ptr<lsst::afw::math::LinearCombinationKernel> spatialKernel, lsst::afw::math::Kernel::SpatialFunctionPtr spatialBackground, lsst::daf::base::PropertySet const &ps)

Parameters
  • spatialKernel: Spatially varying kernel

  • spatialBackground: Spatially varying background

  • ps: PropertySet config

virtual ~AssessSpatialKernelVisitor()
void reset()
int getNGood()
int getNRejected()
int getNProcessed()
void processCandidate(lsst::afw::math::SpatialCellCandidate *candidate)

Private Types

typedef lsst::afw::image::MaskedImage<PixelT> MaskedImageT

Private Members

std::shared_ptr<lsst::afw::math::LinearCombinationKernel> _spatialKernel

Spatial kernel function.

lsst::afw::math::Kernel::SpatialFunctionPtr _spatialBackground

Spatial background function.

lsst::daf::base::PropertySet::Ptr _ps

PropertySet configuration controlling behavior.

ImageStatistics<PixelT> _imstats

To calculate statistics of difference image.

int _nGood

Number of good candidates remaining.

int _nRejected

Number of candidates rejected during processCandidate()

int _nProcessed

Number of candidates processed during processCandidate()

bool _useCoreStats

Extracted from PropertySet config.

int _coreRadius

Extracted from PropertySet config.