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.
A Psf defined by a Kernel.
virtual boost::shared_ptr< afw::detection::Psf > clone() const
Polymorphic deep copy; should usually unnecessary because Psfs are immutable.
friend class boost::serialization::access
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.
void ImageT ImageT int float saturatedPixelValue int const width
SingleGaussianPsf(int width, int height, double sigma)
Constructor for a SingleGaussianPsf.
void load_construct_data(Archive &ar, lsst::afw::math::DeltaFunctionKernel *k, unsigned int const file_version)
boost::shared_ptr< afw::math::Kernel const > getKernel() const
Return the Kernel used to define this Psf.
void ImageT ImageT int float saturatedPixelValue int const height
io::OutputArchiveHandle OutputArchiveHandle
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.
void save_construct_data(Archive &ar, lsst::afw::math::DeltaFunctionKernel const *k, unsigned int const file_version)