20 #ifndef MIRTK_SincInterpolateImageFunction2D_HXX 21 #define MIRTK_SincInterpolateImageFunction2D_HXX 23 #include "mirtk/SincInterpolateImageFunction2D.h" 24 #include "mirtk/SincInterpolateImageFunction.hxx" 31 template <
class TImage>
35 this->NumberOfDimensions(2);
39 template <
class TImage>
40 inline typename GenericSincInterpolateImageFunction2D<TImage>::VoxelType
42 ::Get(
double x,
double y,
double z,
double t)
const 44 return this->Get2D(x, y, z, t);
48 template <
class TImage>
49 inline typename GenericSincInterpolateImageFunction2D<TImage>::VoxelType
53 return this->GetWithPadding2D(x, y, z, t);
57 template <
class TImage>
template <
class TOtherImage>
58 inline typename TOtherImage::VoxelType
60 ::Get(
const TOtherImage *input,
double x,
double y,
double z,
double t)
const 62 return this->Get2D(input, x, y, z, t);
66 template <
class TImage>
template <
class TOtherImage>
67 inline typename TOtherImage::VoxelType
69 ::GetWithPadding(
const TOtherImage *input,
double x,
double y,
double z,
double t)
const 71 return this->GetWithPadding2D(input, x, y, z, t);
75 template <
class TImage>
76 inline typename GenericSincInterpolateImageFunction2D<TImage>::VoxelType
80 return Get(this->Input(), x, y, z, t);
84 template <
class TImage>
85 inline typename GenericSincInterpolateImageFunction2D<TImage>::VoxelType
89 if (this->Extrapolator()) {
90 return Get(this->Extrapolator(), x, y, z, t);
92 return Get(x, y, z, t);
97 template <
class TImage>
98 inline typename GenericSincInterpolateImageFunction2D<TImage>::VoxelType
102 return GetWithPadding(this->Input(), x, y, z, t);
106 template <
class TImage>
107 inline typename GenericSincInterpolateImageFunction2D<TImage>::VoxelType
111 if (this->Extrapolator()) {
112 return GetWithPadding(this->Extrapolator(), x, y, z, t);
114 return GetWithPadding(x, y, z, t);
121 #endif // MIRTK_SincInterpolateImageFunction2D_HXX VoxelType GetWithPadding(double, double, double=0, double=0) const
string Get(const ParameterList ¶ms, string name)
Get parameter value from parameters list.
virtual VoxelType GetWithPaddingInside(double, double, double=0, double=0) const
virtual VoxelType GetInside(double, double, double=0, double=0) const
VoxelType Get(double, double, double=0, double=0) const
GenericSincInterpolateImageFunction2D()
Default constructor.
virtual VoxelType GetOutside(double, double, double=0, double=0) const
Evaluate generic image at an arbitrary location (in pixels)
virtual VoxelType GetWithPaddingOutside(double, double, double=0, double=0) const