12#ifndef LSST_IP_DIFFIM_KERNELPCA_H
13#define LSST_IP_DIFFIM_KERNELPCA_H
23 template <
typename ImageT>
39 template<
typename PixelT>
57 template<
typename PixelT>
void addImage(std::shared_ptr< ImageT > img, double flux=0.0)
ImageList const & getEigenImages() const
std::vector< double > const & getEigenValues() const
Asseses the quality of a candidate given a spatial kernel and background model.
Overrides the analyze method of base class afwImage::ImagePca.
KernelPca(bool constantWeight=true)
Ctor.
virtual void analyze()
Generate eigenimages that are normalised.
std::shared_ptr< KernelPca< ImageT > > Ptr
A class to run a PCA on all candidate kernels (represented as Images).
std::shared_ptr< KernelPcaVisitor< PixelT > > Ptr
void processCandidate(lsst::afw::math::SpatialCellCandidate *candidate)
std::shared_ptr< ImageT > returnMean()
virtual ~KernelPcaVisitor()
lsst::afw::math::KernelList getEigenKernels()
lsst::afw::image::Image< lsst::afw::math::Kernel::Pixel > ImageT
std::shared_ptr< KernelPcaVisitor< PixelT > > makeKernelPcaVisitor(std::shared_ptr< KernelPca< typename KernelPcaVisitor< PixelT >::ImageT > > imagePca)