23 #include "mirtk/Config.h" 24 #include "mirtk/Math.h" 26 #include "mirtk/NumericsExport.h" 35 template <
class TReal>
45 MIRTKCU_API
static const int Radius = 6;
48 MIRTKCU_API
static const int KernelSize = 2 * Radius + 1;
61 MIRTKCU_API
static Real
Lookup(TReal);
69 #endif // defined(__clang__) 76 template <
class TReal>
85 #endif // MIRTK_Sinc_H TReal Real
Floating point precision type.
static MIRTKCU_API Real Lookup(TReal)
Lookup Sinc function value.
static MIRTKCU_API const int LookupTableSize
static MIRTKCU_API const int Radius
static MIRTKCU_API void Initialize()
Initialize lookup table of Sinc function values.
static MIRTKCU_API const int KernelSize
Size of Sinc kernel.
MIRTKCU_API int iround(T x)
Round floating-point value and cast to int.
MIRTK_Numerics_EXPORT static MIRTKCU_API Real * LookupTable
Lookup table of Sinc function values.