23 #ifndef LSST_MEAS_ALGORITHMS_KernelPsf_h_INCLUDED
24 #define LSST_MEAS_ALGORITHMS_KernelPsf_h_INCLUDED
28 namespace lsst {
namespace meas {
namespace algorithms {
47 afw::math::Kernel
const & kernel,
52 PTR(afw::math::Kernel
const)
getKernel()
const {
return _kernel; }
58 virtual PTR(afw::detection::Psf)
clone() const;
67 PTR(afw::math::Kernel) kernel,
78 virtual
void write(OutputArchiveHandle & handle) const;
85 virtual PTR(Image) doComputeKernelImage(
86 afw::geom::Point2D const & position,
87 afw::image::Color const & color
90 virtual afw::geom::Box2I doComputeBBox(
91 afw::geom::Point2D const & position,
92 afw::image::Color const & color
95 PTR(afw::math::Kernel) _kernel;
96 afw::geom::Point2D _averagePosition;
101 #endif // !LSST_MEAS_ALGORITHMS_KernelPsf_h_INCLUDED
A Psf defined by a Kernel.
virtual boost::shared_ptr< afw::detection::Psf > clone() const
Polymorphic deep copy.
virtual bool isPersistable() const
Whether this object is persistable; just delegates to the kernel.
KernelPsf(afw::math::Kernel const &kernel, afw::geom::Point2D const &averagePosition=afw::geom::Point2D())
Construct a KernelPsf with a clone of the given kernel.
boost::shared_ptr< afw::math::Kernel const > getKernel() const
Return the Kernel used to define this Psf.
virtual afw::geom::Point2D getAveragePosition() const
Return average position of stars; used as default position.
virtual std::string getPythonModule() const
An intermediate base class for Psfs that use an image representation.
tbl::PointKey< double > averagePosition
A PersistableFactory for KernelPsf and its subclasses.
virtual void write(OutputArchiveHandle &handle) const
virtual std::string getPersistenceName() const