24#ifndef LSST_MEAS_BASE_SincCoeffs_h_INCLUDED
25#define LSST_MEAS_BASE_SincCoeffs_h_INCLUDED
44template <
typename PixelT>
54 static void cache(
float rInner,
float rOuter);
72 bool operator()(T x, T y)
const {
76 return (x - y < 0) ? true :
false;
83 SincCoeffs() : _cache(){};
84 SincCoeffs(SincCoeffs
const&);
85 void operator=(SincCoeffs
const&);
87 static SincCoeffs& getInstance();
95 _lookup(afw::geom::ellipses::Axes
const& outerEllipse,
double const innerRadiusFactor = 0.0)
const;
A singleton to calculate and cache the coefficients for sinc photometry.
static std::shared_ptr< CoeffT > calculate(afw::geom::ellipses::Axes const &outerEllipse, double const innerFactor=0.0)
Calculate the coefficients for an aperture.
static void cache(float rInner, float rOuter)
Cache the coefficients for a particular aperture.
static std::shared_ptr< CoeffT const > get(afw::geom::ellipses::Axes const &outerEllipse, float const innerRadiusFactor=0.0)
Get the coefficients for an aperture.
afw::image::Image< PixelT > CoeffT