2 #if !defined(LSST_AFW_MATH_APPROXIMATE_H) 3 #define LSST_AFW_MATH_APPROXIMATE_H 34 template <
typename PixelT>
36 template <
typename PixelT,
typename U,
typename V>
74 void setOrderX(
int const orderX) { _orderX = orderX; }
78 void setOrderY(
int const orderY) { _orderY = orderY; }
82 void setWeighting(
bool const weighting) { _weighting = weighting; }
100 template <
typename PixelT>
109 template <
typename PixelT>
128 return doGetImage(orderX, orderY);
132 return doGetMaskedImage(orderX, orderY);
144 : _xVec(x), _yVec(y), _bbox(bbox), _ctrl(ctrl) {}
158 #endif // LSST_AFW_MATH_APPROXIMATE_H float OutPixelT
The pixel type of returned images.
std::shared_ptr< image::MaskedImage< OutPixelT > > getMaskedImage(int orderX=-1, int orderY=-1) const
Return the approximate image as a MaskedImage.
std::shared_ptr< image::Image< OutPixelT > > getImage(int orderX=-1, int orderY=-1) const
Return the approximate image as a Image.
geom::Box2I const _bbox
Domain for approximation.
bool getWeighting() const
Return whether inverse variance weighting will be used in calculation.
Use a 2-D Chebyshev polynomial.
int getOrderX() const
Return the order of approximation to use in the x-direction.
ApproximateControl const _ctrl
desired approximation algorithm
void setOrderX(int const orderX)
Set the order of approximation to use in the x-direction.
Style getStyle() const
Return the Style.
void setWeighting(bool const weighting)
Set whether inverse variance weighting will be used in calculation.
Approximate values for a MaskedImage.
An integer coordinate rectangle.
std::shared_ptr< Approximate< PixelT > > makeApproximate(std::vector< double > const &x, std::vector< double > const &y, image::MaskedImage< PixelT > const &im, geom::Box2I const &bbox, ApproximateControl const &ctrl)
Construct a new Approximate object, inferring the type from the type of the given MaskedImage...
Control how to make an approximation.
A base class for image defects.
void setStyle(Style const style)
Set the Style.
std::vector< double > const _xVec
the x-values of points
A class to manipulate images, masks, and variance as a single object.
int getOrderY() const
Return the order of approximation to use in the y-direction.
Style
Choose the type of approximation to use.
void setOrderY(int const orderY)
Set the order of approximation to use in the y-direction.
std::vector< double > const _yVec
the y-values of points
Approximate(std::vector< double > const &x, std::vector< double > const &y, geom::Box2I const &bbox, ApproximateControl const &ctrl)
Base class ctor.