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;
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;
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()
141 typedef std::list<Component> ComponentList;
142 ComponentList _components;
151 #endif // !defined(LSST_AFW_MATH_SHAPELETS_MULTISHAPELETFUNCTION_H)
ShapeletFunction Component
void update(MultiShapeletFunction const &function)
Update the evaluator from the given function.
MultiShapeletFunctionEvaluator Evaluator
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.
void addToImage(ndarray::Array< double, 2, 1 > const &array, afw::geom::Point2I const &xy0=afw::geom::Point2I()) const
Add the function to the given image-like array.
MultiShapeletFunctionEvaluator(MultiShapeletFunction const &function)
Construct an evaluator for the given function.
A multi-scale shapelet function.
Evaluates a ShapeletFunction.
ComponentList const & getComponents() const
std::shared_ptr< MultiShapeletFunction const > ConstPtr
double integrate() const
Compute the definite integral or integral moments.
void addToImage(afw::image::Image< double > &image) const
Evaluate the function on the given image.
void transformInPlace(afw::geom::AffineTransform const &transform)
Transform the shapelet function by transforming the ellipse of each component.
std::vector< Component > ComponentList
MultiShapeletFunction convolve(ShapeletFunction const &other) const
Convolve the multi-shapelet function.
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.
Evaluator evaluate() const
Construct a helper object that can efficiently evaluate the function.
double operator()(double x, double y) const
Evaluate at the given point.
afw::geom::ellipses::Ellipse computeMoments() const
Return the unweighted dipole and quadrupole moments of the function as an ellipse.
std::shared_ptr< MultiShapeletFunctionEvaluator const > ConstPtr
std::shared_ptr< MultiShapeletFunctionEvaluator > Ptr