25 #ifndef LSST_AFW_MATH_SHAPELETS_MULTISHAPELETFUNCTION_H 26 #define LSST_AFW_MATH_SHAPELETS_MULTISHAPELETFUNCTION_H 31 namespace lsst {
namespace shapelet {
33 class MultiShapeletFunctionEvaluator;
41 typedef std::shared_ptr<MultiShapeletFunction>
Ptr;
42 typedef std::shared_ptr<MultiShapeletFunction const>
ConstPtr;
81 ComponentList _components;
96 typedef std::shared_ptr<MultiShapeletFunctionEvaluator>
Ptr;
97 typedef std::shared_ptr<MultiShapeletFunctionEvaluator const>
ConstPtr;
101 return this->operator()(afw::geom::Point2D(x, y));
105 double operator()(afw::geom::Point2D
const & point)
const;
108 double operator()(afw::geom::Extent2D
const & point)
const;
111 ndarray::Array<double,1,1> operator()(
112 ndarray::Array<double const,1>
const & x,
113 ndarray::Array<double const,1>
const & y
118 ndarray::Array<double,2,1>
const & array,
119 afw::geom::Point2I
const & xy0 = afw::geom::Point2I()
124 addToImage(image.getArray(), image.getXY0());
128 double integrate()
const;
131 afw::geom::ellipses::Ellipse computeMoments()
const;
142 ComponentList _components;
151 #endif // !defined(LSST_AFW_MATH_SHAPELETS_MULTISHAPELETFUNCTION_H) ShapeletFunction Component
MultiShapeletFunctionEvaluator Evaluator
void addToImage(afw::image::Image< double > &image) const
Evaluate the function on the given image.
ComponentList & getComponents()
MultiShapeletFunction(ComponentList const &components)
void normalize(double value=1.0)
Normalize the integral of the shapelet function to the given value.
Evaluates a MultiShapeletFunction.
Evaluator evaluate() const
Construct a helper object that can efficiently evaluate the function.
A multi-scale shapelet function.
Evaluates a ShapeletFunction.
ComponentList const & getComponents() const
double operator()(double x, double y) const
Evaluate at the given point.
std::shared_ptr< MultiShapeletFunction const > ConstPtr
void transformInPlace(afw::geom::AffineTransform const &transform)
Transform the shapelet function by transforming the ellipse of each component.
std::vector< Component > ComponentList
MultiShapeletFunction(ShapeletFunction const &component)
void shiftInPlace(afw::geom::Extent2D const &offset)
Shift the shapelet function by shifting the ellipse of each component.
std::shared_ptr< MultiShapeletFunction > Ptr
A 2-d function defined by an expansion onto a Gauss-Laguerre or Gauss-Hermite basis.
MultiShapeletFunction convolve(ShapeletFunction const &other) const
Convolve the multi-shapelet function.
std::shared_ptr< MultiShapeletFunctionEvaluator const > ConstPtr
std::shared_ptr< MultiShapeletFunctionEvaluator > Ptr