LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
Go to the documentation of this file.
25 #ifndef LSST_AFW_MATH_SHAPELETS_MULTISHAPELETFUNCTION_H
26 #define LSST_AFW_MATH_SHAPELETS_MULTISHAPELETFUNCTION_H
31 namespace lsst {
namespace shapelet {
33 class MultiShapeletFunctionEvaluator;
112 ndarray::Array<double const,1>
const &
x,
113 ndarray::Array<double const,1>
const &
y
118 ndarray::Array<double,2,1>
const & array,
151 #endif // !defined(LSST_AFW_MATH_SHAPELETS_MULTISHAPELETFUNCTION_H)
Backwards-compatibility support for depersisting the old Calib (FluxMag0/FluxMag0Err) objects.
double operator()(geom::Point2D const &point) const
Evaluate at the given point.
double operator()(double x, double y) const
Evaluate at the given point.
std::vector< Component > ComponentList
ComponentList & getComponents()
Evaluates a MultiShapeletFunction.
void normalize(double value=1.0)
Normalize the integral of the shapelet function to the given value.
std::shared_ptr< MultiShapeletFunctionEvaluator const > ConstPtr
ndarray::Array< double, 1, 1 > operator()(ndarray::Array< double const, 1 > const &x, ndarray::Array< double const, 1 > const &y) const
Evaluate at the given points, returning a newly-allocated array.
ShapeletFunction Component
double integrate() const
Compute the definite integral or integral moments.
A 2-d function defined by an expansion onto a Gauss-Laguerre or Gauss-Hermite basis.
void update(MultiShapeletFunction const &function)
Update the evaluator from the given function.
MultiShapeletFunction convolve(ShapeletFunction const &other) const
Convolve the multi-shapelet function.
ItemVariant const * other
std::shared_ptr< MultiShapeletFunction > Ptr
void addToImage(ndarray::Array< double, 2, 1 > const &array, geom::Point2I const &xy0=geom::Point2I()) const
Add the function to the given image-like array.
MultiShapeletFunction(ComponentList const &components)
MultiShapeletFunctionEvaluator(MultiShapeletFunction const &function)
Construct an evaluator for the given function.
A base class for image defects.
An ellipse defined by an arbitrary BaseCore and a center point.
MultiShapeletFunctionEvaluator Evaluator
ComponentList const & getComponents() const
MultiShapeletFunction convolve(MultiShapeletFunction const &other) const
Convolve the multi-shapelet function.
double operator()(geom::Extent2D const &point) const
Evaluate at the given point.
std::shared_ptr< MultiShapeletFunction const > ConstPtr
MultiShapeletFunction(ShapeletFunction const &component)
void transformInPlace(geom::AffineTransform const &transform)
Transform the shapelet function by transforming the ellipse of each component.
void shiftInPlace(geom::Extent2D const &offset)
Shift the shapelet function by shifting the ellipse of each component.
Evaluator evaluate() const
Construct a helper object that can efficiently evaluate the function.
afw::geom::ellipses::Ellipse computeMoments() const
Return the unweighted dipole and quadrupole moments of the function as an ellipse.
A multi-scale shapelet function.
A class to represent a 2-dimensional array of pixels.
std::shared_ptr< MultiShapeletFunctionEvaluator > Ptr
MultiShapeletFunction(MultiShapeletFunction const &other)=default
void addToImage(afw::image::Image< double > &image) const
Evaluate the function on the given image.
Evaluates a ShapeletFunction.
table::Key< table::Array< int > > components