21 #ifndef MIRTK_GaussianInterpolateImageFunction4D_HXX 22 #define MIRTK_GaussianInterpolateImageFunction4D_HXX 24 #include "mirtk/GaussianInterpolateImageFunction4D.h" 25 #include "mirtk/GaussianInterpolateImageFunction.hxx" 32 template <
class TImage>
38 this->NumberOfDimensions(4);
42 template <
class TImage>
43 inline typename GenericGaussianInterpolateImageFunction4D<TImage>::VoxelType
45 ::Get(
double x,
double y,
double z,
double t)
const 47 return this->Get4D(x, y, z, t);
51 template <
class TImage>
52 inline typename GenericGaussianInterpolateImageFunction4D<TImage>::VoxelType
56 return this->GetWithPadding4D(x, y, z, t);
60 template <
class TImage>
template <
class TOtherImage>
61 inline typename TOtherImage::VoxelType
63 ::Get(
const TOtherImage *input,
double x,
double y,
double z,
double t)
const 65 return this->Get4D(input, x, y, z, t);
69 template <
class TImage>
template <
class TOtherImage>
70 inline typename TOtherImage::VoxelType
72 ::GetWithPadding(
const TOtherImage *input,
double x,
double y,
double z,
double t)
const 74 return this->GetWithPadding4D(input, x, y, z, t);
78 template <
class TImage>
79 inline typename GenericGaussianInterpolateImageFunction4D<TImage>::VoxelType
83 return Get(this->Input(), x, y, z, t);
87 template <
class TImage>
88 inline typename GenericGaussianInterpolateImageFunction4D<TImage>::VoxelType
92 if (this->Extrapolator()) {
93 return Get(this->Extrapolator(), x, y, z, t);
95 return Get(x, y, z, t);
100 template <
class TImage>
101 inline typename GenericGaussianInterpolateImageFunction4D<TImage>::VoxelType
105 return GetWithPadding(this->Input(), x, y, z, t);
109 template <
class TImage>
110 inline typename GenericGaussianInterpolateImageFunction4D<TImage>::VoxelType
114 if (this->Extrapolator()) {
115 return GetWithPadding(this->Extrapolator(), x, y, z, t);
117 return GetWithPadding(x, y, z, t);
124 #endif // MIRTK_GaussianInterpolateImageFunction4D_HXX string Get(const ParameterList ¶ms, string name)
Get parameter value from parameters list.
virtual VoxelType GetOutside(double, double, double, double) const
Evaluate generic image at an arbitrary location (in pixels)
VoxelType Get(double, double, double, double) const
virtual VoxelType GetWithPaddingOutside(double, double, double, double) const
GenericGaussianInterpolateImageFunction4D(double sigma=1.0)
Default constructor.
virtual VoxelType GetWithPaddingInside(double, double, double, double) const
VoxelType GetWithPadding(double, double, double, double) const
virtual VoxelType GetInside(double, double, double, double) const