21 #ifndef MIRTK_GaussianInterpolateImageFunction3D_HXX 22 #define MIRTK_GaussianInterpolateImageFunction3D_HXX 24 #include "mirtk/GaussianInterpolateImageFunction3D.h" 25 #include "mirtk/GaussianInterpolateImageFunction.hxx" 32 template <
class TImage>
38 this->NumberOfDimensions(3);
42 template <
class TImage>
43 inline typename GenericGaussianInterpolateImageFunction3D<TImage>::VoxelType
45 ::Get(
double x,
double y,
double z,
double t)
const 47 return this->Get3D(x, y, z, t);
51 template <
class TImage>
52 inline typename GenericGaussianInterpolateImageFunction3D<TImage>::VoxelType
56 return this->GetWithPadding3D(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->Get3D(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->GetWithPadding3D(input, x, y, z, t);
78 template <
class TImage>
79 inline typename GenericGaussianInterpolateImageFunction3D<TImage>::VoxelType
83 return Get(this->Input(), x, y, z, t);
87 template <
class TImage>
88 inline typename GenericGaussianInterpolateImageFunction3D<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 GenericGaussianInterpolateImageFunction3D<TImage>::VoxelType
105 return GetWithPadding(this->Input(), x, y, z, t);
109 template <
class TImage>
110 inline typename GenericGaussianInterpolateImageFunction3D<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_GaussianInterpolateImageFunction3D_HXX VoxelType GetWithPadding(double, double, double, double=0) const
string Get(const ParameterList ¶ms, string name)
Get parameter value from parameters list.
GenericGaussianInterpolateImageFunction3D(double sigma=1.0)
Default constructor.
virtual VoxelType GetWithPaddingInside(double, double, double, double=0) const
VoxelType Get(double, double, double, double=0) const
virtual VoxelType GetWithPaddingOutside(double, double, double, double=0) const
virtual VoxelType GetInside(double, double, double, double=0) const
virtual VoxelType GetOutside(double, double, double, double=0) const
Evaluate generic image at an arbitrary location (in pixels)