2 #ifndef LSST_MEAS_ALGORITHMS_SHAPELET_H
3 #define LSST_MEAS_ALGORITHMS_SHAPELET_H
36 #include "boost/shared_ptr.hpp"
45 namespace algorithms {
48 namespace shapelet {
class BVec; }
94 typedef boost::shared_ptr<Shapelet>
Ptr;
95 typedef boost::shared_ptr<const Shapelet>
ConstPtr;
207 boost::shared_ptr<const ShapeletCovariance>
getCovariance()
const;
219 std::complex<double>
getPQ(
int p,
int q);
278 bool isCentroidFixed,
const ShapeletVector & getValues() const
get the values as a vector.
A coordinate class intended to represent absolute positions.
~Shapelet()
Destructor needs to delete pImpl.
void setSigma(double sigma)
set a new value of sigma
A class to contain the data, WCS, and other information needed to describe an image of the sky...
boost::uint16_t MaskPixel
double evaluateAt(const PointD &pos)
Evaluate f(x,y)
bool measureFromImage(const Source &source, const PointD &pos, bool isCentroidFixed, bool isSigmaFixed, double aperture, const Exposure &exposure, const MaskPixel okmask=0)
measure shapelet decomposition of an image
lsst::afw::geom::PointD PointD
Implementation of the WCS standard for a any projection.
double getSigma() const
get the scale size of the shapelet
int getOrder() const
get the order of the shapelet
const shapelet::BVec & viewAsBVec() const
View the shapelet as a BVec.
Shapelet & operator=(const Shapelet &rhs)
op= does a deep copy
boost::shared_ptr< const Shapelet > ConstPtr
Eigen::MatrixXd ShapeletCovariance
afw::table::Key< double > sigma
lsst::afw::table::SourceRecord Source
bool hasCovariance() const
does the shapelet have a covariance matrix stored?
boost::shared_ptr< const ShapeletCovariance > getCovariance() const
get the covariance matrix
Eigen::Matrix2d getJacobian(const lsst::afw::image::Wcs &wcs, const lsst::afw::geom::PointD &pos)
a helper function to deal with the fact that Wcs doesn't directly return a Jacobian.
boost::shared_ptr< Shapelet > Ptr
std::complex< double > getPQ(int p, int q)
Get a complex b_pq value.
lsst::afw::image::Exposure< PixelT > Exposure
lsst::afw::image::MaskPixel MaskPixel
Eigen::VectorXd ShapeletVector
Record class that contains measurements made on a single exposure.
float PixelT
This class includes the basic functionality for shapelets.
int size() const
the size of the shapelet vector
Shapelet(int order, double sigma)
Basic constructor requires order and sigma.