20 #ifndef MIRTK_FastLinearImageGradientFunction3D_HXX 21 #define MIRTK_FastLinearImageGradientFunction3D_HXX 23 #include "mirtk/FastLinearImageGradientFunction3D.h" 24 #include "mirtk/FastLinearImageGradientFunction.hxx" 31 template <
class TImage>
35 this->NumberOfDimensions(3);
39 template <
class TImage>
42 ::Get(
double x,
double y,
double z,
double t)
const 44 return this->Get3D(x, y, z, t);
48 template <
class TImage>
53 return this->GetWithPadding3D(x, y, z, t);
57 template <
class TImage>
template <
class TOtherImage>
60 ::Get(
const TOtherImage *input,
double x,
double y,
double z,
double t)
const 62 return this->Get3D(input, x, y, z, t);
66 template <
class TImage>
template <
class TOtherImage>
69 ::GetWithPadding(
const TOtherImage *input,
double x,
double y,
double z,
double t)
const 71 return this->GetWithPadding3D(input, x, y, z, t);
75 template <
class TImage>
80 return this->
Get(this->Input(), x, y, z, t);
84 template <
class TImage>
89 if (this->Extrapolator()) {
90 return Get(this->Extrapolator(), x, y, z, t);
92 return Get(x, y, z, t);
97 template <
class TImage>
102 return this->GetWithPadding(this->Input(), x, y, z, t);
106 template <
class TImage>
111 if (this->Extrapolator()) {
112 return GetWithPadding(this->Extrapolator(), x, y, z, t);
114 return GetWithPadding(x, y, z, t);
121 #endif // MIRTK_FastLinearImageGradientFunction3D_HXX string Get(const ParameterList ¶ms, string name)
Get parameter value from parameters list.
virtual GradientType GetWithPaddingOutside(double, double, double=0, double=0) const
virtual GradientType GetOutside(double, double, double=0, double=0) const
Evaluate image gradient at an arbitrary location (in pixels)
virtual GradientType GetInside(double, double, double=0, double=0) const
GenericFastLinearImageGradientFunction3D()
Default constructor.
GradientType Get(double, double, double=0, double=0) const
virtual GradientType GetWithPaddingInside(double, double, double=0, double=0) const
GradientType GetWithPadding(double, double, double=0, double=0) const