20 #ifndef MIRTK_NearestNeighborInterpolateImageFunction_H 21 #define MIRTK_NearestNeighborInterpolateImageFunction_H 23 #include "mirtk/InterpolateImageFunction.h" 32 template <
class TImage>
36 mirtkGenericInterpolatorMacro(
67 VoxelType
Get(
double,
double,
double = 0,
double = 0)
const;
73 VoxelType
GetWithPadding(
double,
double,
double = 0,
double = 0)
const;
82 template <
class TOtherImage>
typename TOtherImage::VoxelType
83 Get(
const TOtherImage *,
double,
double,
double = 0,
double = 0)
const;
95 template <
class TOtherImage>
typename TOtherImage::VoxelType
96 GetWithPadding(
const TOtherImage *,
double,
double,
double = 0,
double = 0)
const;
103 virtual VoxelType
GetInside(
double,
double,
double = 0,
double = 0)
const;
106 virtual VoxelType
GetOutside(
double,
double,
double = 0,
double = 0)
const;
147 #endif // MIRTK_NearestNeighorInterpolateImageFunction_H virtual VoxelType GetOutside(double, double, double=0, double=0) const
Evaluate generic image at an arbitrary location (in pixels)
virtual ~GenericNearestNeighborInterpolateImageFunction()
Destructor.
virtual VoxelType GetInside(double, double, double=0, double=0) const
VoxelType Get(double, double, double=0, double=0) const
virtual void BoundingInterval(double, int &, int &) const
GenericNearestNeighborInterpolateImageFunction()
Default constructor.
virtual VoxelType GetWithPaddingInside(double, double, double=0, double=0) const
virtual VoxelType GetWithPaddingOutside(double, double, double=0, double=0) const
NearestNeighborInterpolateImageFunction()
Constructor.
VoxelType GetWithPadding(double, double, double=0, double=0) const