20 #ifndef MIRTK_SincInterpolateImageFunction3D_HXX 21 #define MIRTK_SincInterpolateImageFunction3D_HXX 23 #include "mirtk/SincInterpolateImageFunction3D.h" 24 #include "mirtk/SincInterpolateImageFunction.hxx" 30 template <
class TImage>
34 this->NumberOfDimensions(3);
38 template <
class TImage>
39 inline typename GenericSincInterpolateImageFunction3D<TImage>::VoxelType
41 ::Get(
double x,
double y,
double z,
double t)
const 43 return this->Get3D(x, y, z, t);
47 template <
class TImage>
48 inline typename GenericSincInterpolateImageFunction3D<TImage>::VoxelType
52 return this->GetWithPadding3D(x, y, z, t);
56 template <
class TImage>
template <
class TOtherImage>
57 inline typename TOtherImage::VoxelType
59 ::Get(
const TOtherImage *input,
double x,
double y,
double z,
double t)
const 61 return this->Get3D(input, x, y, z, t);
65 template <
class TImage>
template <
class TOtherImage>
66 inline typename TOtherImage::VoxelType
68 ::GetWithPadding(
const TOtherImage *input,
double x,
double y,
double z,
double t)
const 70 return this->GetWithPadding3D(input, x, y, z, t);
74 template <
class TImage>
75 inline typename GenericSincInterpolateImageFunction3D<TImage>::VoxelType
79 return Get(this->Input(), x, y, z, t);
83 template <
class TImage>
84 inline typename GenericSincInterpolateImageFunction3D<TImage>::VoxelType
88 if (this->Extrapolator()) {
89 return Get(this->Extrapolator(), x, y, z, t);
91 return Get(x, y, z, t);
96 template <
class TImage>
97 inline typename GenericSincInterpolateImageFunction3D<TImage>::VoxelType
101 return GetWithPadding(this->Input(), x, y, z, t);
105 template <
class TImage>
106 inline typename GenericSincInterpolateImageFunction3D<TImage>::VoxelType
110 if (this->Extrapolator()) {
111 return GetWithPadding(this->Extrapolator(), x, y, z, t);
113 return GetWithPadding(x, y, z, t);
120 #endif // MIRTK_SincInterpolateImageFunction3D_HXX virtual VoxelType GetWithPaddingInside(double, double, double, double=0) const
string Get(const ParameterList ¶ms, string name)
Get parameter value from parameters list.
virtual VoxelType GetInside(double, double, double, double=0) const
VoxelType Get(double, double, double, double=0) const
virtual VoxelType GetWithPaddingOutside(double, double, double, double=0) const
GenericSincInterpolateImageFunction3D()
Default constructor.
virtual VoxelType GetOutside(double, double, double, double=0) const
Evaluate generic image at an arbitrary location (in pixels)
VoxelType GetWithPadding(double, double, double, double=0) const