LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Functions
boost::serialization Namespace Reference

Functions

template<class Archive >
void save_construct_data (Archive &ar, lsst::afw::math::DeltaFunctionKernel const *k, unsigned int const file_version)
 
template<class Archive >
void load_construct_data (Archive &ar, lsst::afw::math::DeltaFunctionKernel *k, unsigned int const file_version)
 
template<class Archive >
void save_construct_data (Archive &ar, lsst::meas::algorithms::DoubleGaussianPsf const *p, unsigned int const )
 
template<class Archive >
void load_construct_data (Archive &ar, lsst::meas::algorithms::DoubleGaussianPsf *p, unsigned int const )
 
template<class Archive >
void save_construct_data (Archive &ar, lsst::meas::algorithms::PcaPsf const *p, unsigned int const)
 
template<class Archive >
void load_construct_data (Archive &ar, lsst::meas::algorithms::PcaPsf *p, unsigned int const)
 
template<class Archive >
void save_construct_data (Archive &ar, lsst::meas::algorithms::SingleGaussianPsf const *p, unsigned int const)
 
template<class Archive >
void load_construct_data (Archive &ar, lsst::meas::algorithms::SingleGaussianPsf *p, unsigned int const)
 

Function Documentation

template<class Archive >
void boost::serialization::load_construct_data ( Archive &  ar,
lsst::meas::algorithms::PcaPsf p,
unsigned int  const 
)
inline

Definition at line 86 of file PcaPsf.h.

88  {
90  ar >> make_nvp("kernel", kernel);
91  double x=0.0, y=0.0;
92  ar >> make_nvp("averagePositionX", x);
93  ar >> make_nvp("averagePositionY", y);
94  ::new(p) lsst::meas::algorithms::PcaPsf(PTR(lsst::afw::math::LinearCombinationKernel)(kernel),
95  lsst::afw::geom::Point2D(x, y));
96 }
int y
#define PTR(...)
Definition: base.h:41
Point< double, 2 > Point2D
Definition: Point.h:286
A kernel that is a linear combination of fixed basis kernels.
Definition: Kernel.h:814
double x
template<class Archive >
void boost::serialization::load_construct_data ( Archive &  ar,
lsst::meas::algorithms::SingleGaussianPsf p,
unsigned int  const 
)
inline

Definition at line 95 of file SingleGaussianPsf.h.

97  {
98  int width;
99  int height;
100  double sigma;
101  ar >> make_nvp("width", width);
102  ar >> make_nvp("height", height);
103  ar >> make_nvp("sigma", sigma);
104  ::new(p) lsst::meas::algorithms::SingleGaussianPsf(width, height, sigma);
105 }
afw::table::Key< double > sigma
Definition: GaussianPsf.cc:43
void ImageT ImageT int float saturatedPixelValue int const width
Definition: saturated.cc:44
void ImageT ImageT int float saturatedPixelValue int const height
Definition: saturated.cc:44
template<class Archive >
void boost::serialization::load_construct_data ( Archive &  ar,
lsst::meas::algorithms::DoubleGaussianPsf p,
unsigned int  const 
)
inline

Definition at line 106 of file DoubleGaussianPsf.h.

109  {
110  int width;
111  int height;
112  double sigma1;
113  double sigma2;
114  double b;
115  ar >> make_nvp("width", width);
116  ar >> make_nvp("height", height);
117  ar >> make_nvp("sigma1", sigma1);
118  ar >> make_nvp("sigma2", sigma2);
119  ar >> make_nvp("b", b);
120  ::new(p) lsst::meas::algorithms::DoubleGaussianPsf(width, height, sigma1, sigma2, b);
121 }
void ImageT ImageT int float saturatedPixelValue int const width
Definition: saturated.cc:44
void ImageT ImageT int float saturatedPixelValue int const height
Definition: saturated.cc:44
afw::table::Key< double > sigma1
afw::table::Key< double > b
afw::table::Key< double > sigma2
template<class Archive >
void boost::serialization::load_construct_data ( Archive &  ar,
lsst::afw::math::DeltaFunctionKernel k,
unsigned int const  file_version 
)
inline

Definition at line 1174 of file Kernel.h.

1176  {
1177  int width;
1178  int height;
1179  int x;
1180  int y;
1181  ar >> make_nvp("width", width);
1182  ar >> make_nvp("height", height);
1183  ar >> make_nvp("pixX", x);
1184  ar >> make_nvp("pixY", y);
1185  ::new(k) lsst::afw::math::DeltaFunctionKernel(
1186  width, height, lsst::afw::geom::Point2I(x, y));
1187 }
int y
Point< int, 2 > Point2I
Definition: Point.h:283
void ImageT ImageT int float saturatedPixelValue int const width
Definition: saturated.cc:44
double x
void ImageT ImageT int float saturatedPixelValue int const height
Definition: saturated.cc:44
template<class Archive >
void boost::serialization::save_construct_data ( Archive &  ar,
lsst::meas::algorithms::PcaPsf const *  p,
unsigned int  const 
)
inline

Definition at line 75 of file PcaPsf.h.

77  {
78  lsst::afw::math::LinearCombinationKernel const* kernel = p->getKernel().get();
79  ar << make_nvp("kernel", kernel);
80  lsst::afw::geom::Point2D averagePosition = p->getAveragePosition();
81  ar << make_nvp("averagePositionX", averagePosition.getX());
82  ar << make_nvp("averagePositionY", averagePosition.getY());
83 }
A kernel that is a linear combination of fixed basis kernels.
Definition: Kernel.h:814
tbl::PointKey< double > averagePosition
Definition: CoaddPsf.cc:328
template<class Archive >
void boost::serialization::save_construct_data ( Archive &  ar,
lsst::meas::algorithms::SingleGaussianPsf const *  p,
unsigned int  const 
)
inline

Definition at line 83 of file SingleGaussianPsf.h.

85  {
86  int width = p->getKernel()->getWidth();
87  int height = p->getKernel()->getHeight();
88  double sigma = p->getSigma();
89  ar << make_nvp("width", width);
90  ar << make_nvp("height", height);
91  ar << make_nvp("sigma", sigma);
92 }
afw::table::Key< double > sigma
Definition: GaussianPsf.cc:43
void ImageT ImageT int float saturatedPixelValue int const width
Definition: saturated.cc:44
void ImageT ImageT int float saturatedPixelValue int const height
Definition: saturated.cc:44
template<class Archive >
void boost::serialization::save_construct_data ( Archive &  ar,
lsst::meas::algorithms::DoubleGaussianPsf const *  p,
unsigned int  const 
)
inline

Definition at line 89 of file DoubleGaussianPsf.h.

92  {
93  int width = p->getKernel()->getWidth();
94  int height = p->getKernel()->getHeight();
95  double sigma1 = p->getSigma1();
96  double sigma2 = p->getSigma2();
97  double b = p->getB();
98  ar << make_nvp("width", width);
99  ar << make_nvp("height", height);
100  ar << make_nvp("sigma1", sigma1);
101  ar << make_nvp("sigma2", sigma2);
102  ar << make_nvp("b", b);
103 }
void ImageT ImageT int float saturatedPixelValue int const width
Definition: saturated.cc:44
void ImageT ImageT int float saturatedPixelValue int const height
Definition: saturated.cc:44
afw::table::Key< double > sigma1
afw::table::Key< double > b
afw::table::Key< double > sigma2
template<class Archive >
void boost::serialization::save_construct_data ( Archive &  ar,
lsst::afw::math::DeltaFunctionKernel const *  k,
unsigned int const  file_version 
)
inline

Definition at line 1160 of file Kernel.h.

1162  {
1163  int width = k->getWidth();
1164  int height = k->getHeight();
1165  int x = k->getPixel().getX();
1166  int y = k->getPixel().getY();
1167  ar << make_nvp("width", width);
1168  ar << make_nvp("height", height);
1169  ar << make_nvp("pixX", x);
1170  ar << make_nvp("pixY", y);
1171 }
int y
void ImageT ImageT int float saturatedPixelValue int const width
Definition: saturated.cc:44
double x
void ImageT ImageT int float saturatedPixelValue int const height
Definition: saturated.cc:44