24 #ifndef LSST_MEAS_ALGORITHMS_PcaPsf_h_INCLUDED
25 #define LSST_MEAS_ALGORITHMS_PcaPsf_h_INCLUDED
32 namespace algorithms {
59 std::string getPersistenceName()
const override {
return "PcaPsf"; }
afw::table::PointKey< double > averagePosition
A Psf defined by a Kernel.
Represent a PSF as a linear combination of PCA (== Karhunen-Loeve) basis functions.
boost::shared_ptr< afw::detection::Psf > resized(int width, int height) const override
Return a clone with specified kernel dimensions.
boost::shared_ptr< afw::math::LinearCombinationKernel const > getKernel() const
PcaPsf always has a LinearCombinationKernel, so we can override getKernel to make it more useful.
boost::shared_ptr< afw::detection::Psf > clone() const override
Polymorphic deep copy; should usually be unnecessary as Psfs are immutable.x.
PcaPsf(boost::shared_ptr< afw::math::LinearCombinationKernel > kernel, geom::Point2D const &averagePosition=geom::Point2D())
Constructor for a PcaPsf.