Go to the documentation of this file.
34 #ifndef vtkImageInterpolator_h
35 #define vtkImageInterpolator_h
37 #include "vtkImagingCoreModule.h"
53 virtual void SetInterpolationMode(
int mode);
61 virtual const char *GetInterpolationModeAsString();
89 const double matrix[16],
const int extent[6],
int newExtent[6],
92 const float matrix[16],
const int extent[6],
int newExtent[6],
virtual void FreePrecomputedWeights(vtkInterpolationWeights *&weights)
Free the weights that were provided by PrecomputeWeightsForExtent.
virtual void GetRowInterpolationFunc(void(**doublefunc)(vtkInterpolationWeights *, int, int, int, double *, int))
Get the row interpolation functions.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
#define VTK_CUBIC_INTERPOLATION
#define VTK_NEAREST_INTERPOLATION
virtual void InternalDeepCopy(vtkAbstractImageInterpolator *obj)=0
Subclass-specific copy.
void SetInterpolationModeToCubic()
interpolate data values from images
int GetInterpolationMode()
virtual void ComputeSupportSize(const double matrix[16], int support[3])=0
Get the support size for use in computing update extents.
a simple class to control print indentation
virtual void InternalUpdate()=0
Subclass-specific updates.
#define VTK_LINEAR_INTERPOLATION
virtual bool IsSeparable()=0
True if the interpolation is separable, which means that the weights can be precomputed in order to a...
virtual void GetInterpolationFunc(void(**doublefunc)(vtkInterpolationInfo *, const double[3], double *))
Get the interpolation functions.
interpolate data values from images
virtual void PrecomputeWeightsForExtent(const double matrix[16], const int extent[6], int checkExtent[6], vtkInterpolationWeights *&weights)
If the data is going to be sampled on a regular grid, then the interpolation weights can be precomput...
void SetInterpolationModeToNearest()
void SetInterpolationModeToLinear()