20 #ifndef MIRTK_FastLinearImageGradientFunction_H 21 #define MIRTK_FastLinearImageGradientFunction_H 23 #include "mirtk/BaseImage.h" 24 #include "mirtk/ImageGradientFunction.h" 43 template <
class TImage>
47 mirtkGenericGradientInterpolatorMacro(
49 Interpolation_FastLinear
104 template <
class TOtherImage>
105 GradientType Get2D(
const TOtherImage *,
double,
double,
double = 0,
double = 0)
const;
117 template <
class TOtherImage>
139 template <
class TOtherImage>
140 GradientType Get3D(
const TOtherImage *,
double,
double,
double = 0,
double = 0)
const;
152 template <
class TOtherImage>
174 template <
class TOtherImage>
175 GradientType Get4D(
const TOtherImage *,
double,
double,
double = 0,
double = 0)
const;
187 template <
class TOtherImage>
194 virtual GradientType Get(
double,
double,
double = 0,
double = 0)
const;
209 template <
class TOtherImage>
210 GradientType Get(
const TOtherImage *,
double,
double,
double = 0,
double = 0)
const;
222 template <
class TOtherImage>
273 #endif // MIRTK_FastLinearImageGradientFunction_H virtual GradientType GetWithPadding(double, double, double=0, double=0) const
GradientType Get2D(double, double, double=0, double=0) const
virtual ~GenericFastLinearImageGradientFunction()
Destructor.
GradientType Get3D(double, double, double=0, double=0) const
virtual GradientType GetOutside(double, double, double=0, double=0) const
Evaluate generic image at an arbitrary location (in pixels)
GenericFastLinearImageGradientFunction()
Default constructor.
virtual GradientType GetWithPaddingInside(double, double, double=0, double=0) const
virtual void Initialize(bool=false)
Initialize interpolation function.
GradientType GetWithPadding3D(double, double, double=0, double=0) const
static int ComputeWeights(double, Real[2])
virtual void BoundingInterval(double, int &, int &) const
GradientType GetWithPadding4D(double, double, double=0, double=0) const
FastLinearImageGradientFunction()
Constructor.
virtual GradientType Get(double, double, double=0, double=0) const
GradientType GetWithPadding2D(double, double, double=0, double=0) const
GradientType Get4D(double, double, double=0, double=0) const
virtual GradientType GetInside(double, double, double=0, double=0) const
virtual GradientType GetWithPaddingOutside(double, double, double=0, double=0) const