20 #ifndef MIRTK_ShapeBasedInterpolateImageFunction_H 21 #define MIRTK_ShapeBasedInterpolateImageFunction_H 23 #include "mirtk/InterpolateImageFunction.h" 25 #include "mirtk/Math.h" 26 #include "mirtk/GenericImage.h" 27 #include "mirtk/LinearInterpolateImageFunction.h" 28 #include "mirtk/NearestNeighborInterpolateImageFunction.h" 41 mirtkInterpolatorMacro(
110 virtual double EvaluateInside(
double,
double,
double,
double = 0)
const;
113 virtual double EvaluateOutside(
double,
double,
double,
double = 0)
const;
170 virtual double EvaluateLinear(
double,
double,
double,
double = 0)
const;
232 #endif // MIRTK_ShapeBasedInterpolateImageFunction_H virtual double EvaluateWithPaddingOutside(double, double, double, double=0) const
NearestNeighborInterpolateImageFunction _nn_interpolator
Image function for nearest neighbor interpolation of resampled input.
virtual void Initialize()
virtual void BoundingInterval(double, int &, int &) const
virtual double EvaluateInside(double, double, double=0, double=0) const =0
virtual double EvaluateInsideLinear(double, double, double, double=0) const
RealImage _rcdmap
Isotropic resampled cache image for refine procedure.
virtual double EvaluateInside(double, double, double, double=0) const
virtual ~ShapeBasedInterpolateImageFunction()
Destructor.
RealImage _dmap
Distance map for input image.
virtual double EvaluateOutsideLinear(double, double, double, double=0) const
Evaluate the filter at a boundary image location (in pixels)
RealImage _tinput
Threshold map for input image.
virtual double EvaluateWithPaddingInside(double, double, double=0, double=0) const =0
RealImage _rinput
Isotropic resampled Input image after shape based interpolation.
virtual double EvaluateWithPaddingOutside(double, double, double=0, double=0) const =0
LinearInterpolateImageFunction _linear_interpolator
Image function for linear interpolation of resampled input.
virtual double EvaluateOutside(double, double, double, double=0) const
Evaluate scalar image at an arbitrary location (in pixels)
RealImage _rdmap
Isotropic resampled distance map for input image with linear interpolation.
void Refine()
Initialize second step, fix the union property.
MIRTKCU_API int iround(T x)
Round floating-point value and cast to int.
ShapeBasedInterpolateImageFunction()
Constructor.
virtual double EvaluateWithPaddingInside(double, double, double, double=0) const
virtual double EvaluateOutside(double, double, double=0, double=0) const =0
Evaluate scalar image at an arbitrary location (in pixels)
virtual double EvaluateLinear(double, double, double, double=0) const
Evaluate the filter at arbitrary image location (in pixels)