Template Class Approximate

Class Documentation

template<typename PixelT>
class Approximate

Approximate values for a MaskedImage

Public Types

typedef float OutPixelT

The pixel type of returned images.

Public Functions

Approximate(Approximate const&)
Approximate(Approximate&&)
Approximate &operator=(Approximate const&)
Approximate &operator=(Approximate&&)
virtual ~Approximate()

dtor

std::shared_ptr<image::Image<OutPixelT>> getImage(int orderX = -1, int orderY = -1) const

Return the approximate image as a Image.

std::shared_ptr<image::MaskedImage<OutPixelT>> getMaskedImage(int orderX = -1, int orderY = -1) const

Return the approximate image as a MaskedImage.

Protected Functions

Approximate(std::vector<double> const &x, std::vector<double> const &y, lsst::geom::Box2I const &bbox, ApproximateControl const &ctrl)

Parameters
  • x: the x-values of points

  • y: the y-values of points

  • bbox: Range where approximation should be valid

  • ctrl: desired approximation algorithm

Base class ctor

Protected Attributes

std::vector<double> const _xVec

the x-values of points

std::vector<double> const _yVec

the y-values of points

lsst::geom::Box2I const _bbox

Domain for approximation.

ApproximateControl const _ctrl

desired approximation algorithm

Friends

std::shared_ptr<Approximate<PixelT>> makeApproximate(std::vector<double> const &x, std::vector<double> const &y, image::MaskedImage<PixelT> const &im, lsst::geom::Box2I const &bbox, ApproximateControl const &ctrl)

Construct a new Approximate object, inferring the type from the type of the given MaskedImage.

Parameters
  • x: the x-values of points

  • y: the y-values of points

  • im: The values at (x, y)

  • bbox: Range where approximation should be valid

  • ctrl: desired approximation algorithm