24 #ifndef LSST_MEAS_ALGORITHMS_SingleGaussianPsf_h_INCLUDED
25 #define LSST_MEAS_ALGORITHMS_SingleGaussianPsf_h_INCLUDED
29 #include "boost/serialization/nvp.hpp"
30 #include "boost/serialization/void_cast.hpp"
32 namespace lsst {
namespace meas {
namespace algorithms {
71 template <
class Archive>
73 boost::serialization::void_cast_register<SingleGaussianPsf, lsst::afw::detection::Psf>(
80 namespace boost {
namespace serialization {
82 template <
class Archive>
89 ar << make_nvp(
"width", width);
90 ar << make_nvp(
"height", height);
91 ar << make_nvp(
"sigma", sigma);
94 template <
class Archive>
101 ar >> make_nvp(
"width", width);
102 ar >> make_nvp(
"height", height);
103 ar >> make_nvp(
"sigma", sigma);
109 #endif // !LSST_MEAS_ALGORITHMS_SingleGaussianPsf_h_INCLUDED
double getSigma() const
Return the radius of the Gaussian.
void load_construct_data(Archive &ar, lsst::meas::algorithms::DoubleGaussianPsf *p, unsigned int const )
A Psf defined by a Kernel.
void save_construct_data(Archive &ar, lsst::meas::algorithms::DoubleGaussianPsf const *p, unsigned int const )
virtual boost::shared_ptr< afw::detection::Psf > clone() const
Polymorphic deep copy; should usually unnecessary because Psfs are immutable.
friend class boost::serialization::access
io::OutputArchiveHandle OutputArchiveHandle
virtual void write(OutputArchiveHandle &handle) const
Write the object to one or more catalogs.
void serialize(Archive &, unsigned int const)
afw::table::Key< double > sigma
Represent a PSF as a circularly symmetrical double Gaussian.
double _sigma
Width of Gaussian.
SingleGaussianPsf(int width, int height, double sigma)
Constructor for a SingleGaussianPsf.
boost::shared_ptr< afw::math::Kernel const > getKernel() const
Return the Kernel used to define this Psf.
virtual bool isPersistable() const
Whether the Psf is persistable; always true.
virtual std::string getPersistenceName() const
Return the unique name used to persist this object and look up its factory.
A polymorphic base class for representing an image's Point Spread Function.
A CRTP facade class for subclasses of Persistable.