24 #ifndef LSST_MEAS_BASE_SincCoeffs_h_INCLUDED
25 #define LSST_MEAS_BASE_SincCoeffs_h_INCLUDED
32 namespace lsst {
namespace meas {
namespace base {
42 template<
typename PixelT>
53 static void cache(
float rInner,
float rOuter);
61 get(afw::geom::ellipses::Axes const & outerEllipse,
float const innerRadiusFactor=0.0);
65 calculate(afw::geom::ellipses::Axes const& outerEllipse,
double const innerFactor=0.0);
76 return (x - y < 0) ?
true :
false;
79 return ::fabs(x - y) < std::numeric_limits<T>::epsilon();
83 typedef std::map<float, PTR(CoeffT), FuzzyCompare<float> >
CoeffMap;
84 typedef std::map<float, CoeffMap, FuzzyCompare<float> >
CoeffMapMap;
97 _lookup(afw::geom::ellipses::Axes const & outerEllipse,
double const innerRadiusFactor=0.0) const;
104 #endif // !LSST_MEAS_BASE_SincCoeffs_h_INCLUDED
static boost::shared_ptr< CoeffT const > get(afw::geom::ellipses::Axes const &outerEllipse, float const innerRadiusFactor=0.0)
Definitions and inlines for Axes.
std::map< float, CoeffMap, FuzzyCompare< float > > CoeffMapMap
bool isEqual(T x, T y) const
static SincCoeffs & getInstance()
boost::shared_ptr< CoeffT const > _lookup(afw::geom::ellipses::Axes const &outerEllipse, double const innerRadiusFactor=0.0) const
static void cache(float rInner, float rOuter)
std::map< float, boost::shared_ptr< CoeffT >, FuzzyCompare< float > > CoeffMap
static boost::shared_ptr< CoeffT > calculate(afw::geom::ellipses::Axes const &outerEllipse, double const innerFactor=0.0)
Calculate the coefficients for an aperture.
void operator=(SincCoeffs const &)
bool operator()(T x, T y) const
afw::image::Image< PixelT > CoeffT