31 #ifndef vtkImageSincInterpolator_h 32 #define vtkImageSincInterpolator_h 34 #include "vtkImagingCoreModule.h" 37 #define VTK_LANCZOS_WINDOW 0 38 #define VTK_KAISER_WINDOW 1 39 #define VTK_COSINE_WINDOW 2 40 #define VTK_HANN_WINDOW 3 41 #define VTK_HAMMING_WINDOW 4 42 #define VTK_BLACKMAN_WINDOW 5 43 #define VTK_BLACKMAN_HARRIS3 6 44 #define VTK_BLACKMAN_HARRIS4 7 45 #define VTK_NUTTALL_WINDOW 8 46 #define VTK_BLACKMAN_NUTTALL3 9 47 #define VTK_BLACKMAN_NUTTALL4 10 48 #define VTK_SINC_KERNEL_SIZE_MAX 32 70 virtual void SetWindowFunction(
int mode);
94 virtual const char *GetWindowFunctionAsString();
104 void SetWindowHalfWidth(
int n);
111 void SetUseWindowParameter(
int val);
124 void SetWindowParameter(
double parm);
144 void SetBlurFactors(
double x,
double y,
double z);
146 this->SetBlurFactors(f[0], f[1], f[2]); }
148 f[0] = this->BlurFactors[0];
149 f[1] = this->BlurFactors[1];
150 f[2] = this->BlurFactors[2]; }
164 void SetAntialiasing(
int antialiasing);
176 void SetRenormalization(
int renormalization);
199 const double matrix[16],
const int extent[6],
int newExtent[6],
202 const float matrix[16],
const int extent[6],
int newExtent[6],
252 virtual void BuildKernelLookupTable();
257 virtual void FreeKernelLookupTable();
261 float *KernelLookupTable[3];
265 double BlurFactors[3];
266 double LastBlurFactors[3];
interpolate data values from images
void SetWindowFunctionToBlackmanHarris4()
The window function to use.
#define VTK_KAISER_WINDOW
double * GetBlurFactors()
Blur the image by widening the windowed sinc kernel by the specified factors for the x...
void SetWindowFunctionToKaiser()
The window function to use.
#define VTK_LANCZOS_WINDOW
int GetWindowFunction()
The window function to use.
void RenormalizationOff()
virtual void InternalDeepCopy(vtkAbstractImageInterpolator *obj)=0
Subclass-specific copy.
virtual void InternalUpdate()=0
Subclass-specific updates.
void UseWindowParameterOn()
#define VTK_NUTTALL_WINDOW
#define VTK_BLACKMAN_NUTTALL4
void SetWindowFunctionToBlackmanNuttall3()
The window function to use.
a simple class to control print indentation
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 SetWindowFunctionToBlackmanHarris3()
The window function to use.
topologically and geometrically regular array of data
void GetBlurFactors(double f[3])
Blur the image by widening the windowed sinc kernel by the specified factors for the x...
void SetWindowFunctionToBlackman()
The window function to use.
virtual void GetRowInterpolationFunc(void(**doublefunc)(vtkInterpolationWeights *, int, int, int, double *, int))
Get the row interpolation functions.
virtual bool IsSeparable()=0
True if the interpolation is separable, which means that the weights can be precomputed in order to a...
void SetWindowFunctionToHamming()
The window function to use.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
#define VTK_SIZEHINT(...)
void SetWindowFunctionToCosine()
The window function to use.
#define VTK_BLACKMAN_HARRIS4
void SetWindowFunctionToNuttall()
The window function to use.
void SetWindowFunctionToLanczos()
The window function to use.
virtual void FreePrecomputedWeights(vtkInterpolationWeights *&weights)
Free the weights that were provided by PrecomputeWeightsForExtent.
#define VTK_BLACKMAN_WINDOW
#define VTK_BLACKMAN_HARRIS3
int GetUseWindowParameter()
void UseWindowParameterOff()
void SetWindowFunctionToBlackmanNuttall4()
The window function to use.
virtual void GetInterpolationFunc(void(**doublefunc)(vtkInterpolationInfo *, const double [3], double *))
Get the interpolation functions.
#define VTK_HAMMING_WINDOW
void SetWindowFunctionToHann()
The window function to use.
#define VTK_BLACKMAN_NUTTALL3
perform sinc interpolation on images
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
double GetWindowParameter()
virtual void ComputeSupportSize(const double matrix[16], int support[3])=0
Get the support size for use in computing update extents.
void SetBlurFactors(const double f[3])
Blur the image by widening the windowed sinc kernel by the specified factors for the x...
#define VTK_COSINE_WINDOW