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 {
74 template <
class Archive>
75 void serialize(Archive&,
unsigned int const) {
76 boost::serialization::void_cast_register<SingleGaussianPsf, lsst::afw::detection::Psf>(
83 namespace boost {
namespace serialization {
85 template <
class Archive>
92 ar << make_nvp(
"width", width);
93 ar << make_nvp(
"height", height);
94 ar << make_nvp(
"sigma", sigma);
97 template <
class Archive>
100 unsigned int const) {
104 ar >> make_nvp(
"width", width);
105 ar >> make_nvp(
"height", height);
106 ar >> make_nvp(
"sigma", sigma);
112 #endif // !LSST_MEAS_ALGORITHMS_SingleGaussianPsf_h_INCLUDED virtual void write(OutputArchiveHandle &handle) const
A Psf defined by a Kernel.
friend class boost::serialization::access
boost::shared_ptr< afw::math::Kernel const > getKernel() const
Return the Kernel used to define this Psf.
virtual std::string getPersistenceName() const
double getSigma() const
Return the radius of the Gaussian.
Represent a PSF as a circularly symmetrical Gaussian.
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)
virtual boost::shared_ptr< afw::detection::Psf > resized(int width, int height) const
Return a clone with specified kernel dimensions.
virtual boost::shared_ptr< afw::detection::Psf > clone() const
Polymorphic deep copy; should usually unnecessary because Psfs are immutable.
io::OutputArchiveHandle OutputArchiveHandle
virtual bool isPersistable() const
Whether the Psf is persistable; always true.
void save_construct_data(Archive &ar, lsst::afw::math::DeltaFunctionKernel const *k, unsigned int const file_version)