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;
61 virtual PTR(afw::detection::Psf)
resized(
int width,
int height)
const;
70 PTR(afw::math::Kernel) kernel,
81 virtual void write(OutputArchiveHandle & handle)
const;
88 virtual PTR(Image) doComputeKernelImage(
89 afw::geom::Point2D
const & position,
90 afw::image::Color
const & color
93 virtual afw::geom::Box2I doComputeBBox(
94 afw::geom::Point2D
const & position,
95 afw::image::Color
const & color
98 PTR(afw::math::Kernel) _kernel;
99 afw::geom::Point2D _averagePosition;
104 #endif // !LSST_MEAS_ALGORITHMS_KernelPsf_h_INCLUDED virtual boost::shared_ptr< afw::detection::Psf > clone() const
Polymorphic deep copy.
A Psf defined by a Kernel.
virtual std::string getPythonModule() const
boost::shared_ptr< afw::math::Kernel const > getKernel() const
Return the Kernel used to define this Psf.
virtual boost::shared_ptr< afw::detection::Psf > resized(int width, int height) const
Return a clone with specified kernel dimensions.
KernelPsf(afw::math::Kernel const &kernel, afw::geom::Point2D const &averagePosition=afw::geom::Point2D())
Construct a KernelPsf with a clone of the given kernel.
virtual void write(OutputArchiveHandle &handle) const
virtual bool isPersistable() const
Whether this object is persistable; just delegates to the kernel.
An intermediate base class for Psfs that use an image representation.
A PersistableFactory for KernelPsf and its subclasses.
tbl::PointKey< double > averagePosition
virtual std::string getPersistenceName() const
virtual afw::geom::Point2D getAveragePosition() const
Return average position of stars; used as default position.