File KernelPca.h

Declaration of KernelPca and KernelPcaVisitor.

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<KernelPcaVisitor<PixelT>> makeKernelPcaVisitor(std::shared_ptr<KernelPca<typename KernelPcaVisitor<PixelT>::ImageT>> imagePca)
template<typename ImageT>
class KernelPca : public lsst::afw::image::ImagePca<ImageT>

Public Types

typedef std::shared_ptr<KernelPca<ImageT>> Ptr

Public Functions

KernelPca(bool constantWeight = true)

Ctor.

virtual void analyze()

Generate eigenimages that are normalised.

Private Types

typedef lsst::afw::image::ImagePca<ImageT> Super

Base class.

template<typename PixelT>
class KernelPcaVisitor : public lsst::afw::math::CandidateVisitor

Public Types

typedef lsst::afw::image::Image<lsst::afw::math::Kernel::Pixel> ImageT
typedef std::shared_ptr<KernelPcaVisitor<PixelT>> Ptr

Public Functions

KernelPcaVisitor(std::shared_ptr<KernelPca<ImageT>> imagePca)
virtual ~KernelPcaVisitor()
lsst::afw::math::KernelList getEigenKernels()
void processCandidate(lsst::afw::math::SpatialCellCandidate *candidate)
void subtractMean()
PTR(ImageT)

Private Functions

PTR(ImageT)

Mean image calculated before Pca.

Private Members

std::shared_ptr<KernelPca<ImageT>> _imagePca

Structure to fill with images.