Template Function lsst::afw::math::makeApproximate

Function Documentation

template<typename PixelT>
std::shared_ptr<Approximate<PixelT>> lsst::afw::math::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