20 #ifndef MIRTK_SincInterpolateImageFunction4D_HXX 21 #define MIRTK_SincInterpolateImageFunction4D_HXX 23 #include "mirtk/SincInterpolateImageFunction4D.h" 24 #include "mirtk/SincInterpolateImageFunction.hxx" 30 template <
class TImage>
34 this->NumberOfDimensions(4);
38 template <
class TImage>
39 inline typename GenericSincInterpolateImageFunction4D<TImage>::VoxelType
41 ::Get(
double x,
double y,
double z,
double t)
const 43 return this->Get4D(x, y, z, t);
47 template <
class TImage>
48 inline typename GenericSincInterpolateImageFunction4D<TImage>::VoxelType
52 return this->GetWithPadding4D(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->Get4D(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->GetWithPadding4D(input, x, y, z, t);
74 template <
class TImage>
75 inline typename GenericSincInterpolateImageFunction4D<TImage>::VoxelType
79 return Get(this->Input(), x, y, z, t);
83 template <
class TImage>
84 inline typename GenericSincInterpolateImageFunction4D<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 GenericSincInterpolateImageFunction4D<TImage>::VoxelType
101 return GetWithPadding(this->Input(), x, y, z, t);
105 template <
class TImage>
106 inline typename GenericSincInterpolateImageFunction4D<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_SincInterpolateImageFunction4D_HXX VoxelType Get(double, double, double, double) const
GenericSincInterpolateImageFunction4D()
Default constructor.
string Get(const ParameterList ¶ms, string name)
Get parameter value from parameters list.
virtual VoxelType GetInside(double, double, double, double) const
virtual VoxelType GetOutside(double, double, double, double) const
Evaluate generic image at an arbitrary location (in pixels)
VoxelType GetWithPadding(double, double, double, double) const
virtual VoxelType GetWithPaddingOutside(double, double, double, double) const
virtual VoxelType GetWithPaddingInside(double, double, double, double) const