31 #ifndef vtkImageSincInterpolator_h
32 #define vtkImageSincInterpolator_h
35 #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
136 f[0] = this->BlurFactors[0];
137 f[1] = this->BlurFactors[1];
138 f[2] = this->BlurFactors[2];
244 float* KernelLookupTable[3];
248 double BlurFactors[3];
249 double LastBlurFactors[3];
interpolate data values from images
topologically and geometrically regular array of data
perform sinc interpolation on images
void SetWindowFunctionToKaiser()
vtkImageSincInterpolator()
virtual void SetWindowFunction(int mode)
The window function to use.
void InternalDeepCopy(vtkAbstractImageInterpolator *obj) override
Copy the interpolator.
double * GetBlurFactors()
virtual const char * GetWindowFunctionAsString()
void SetWindowFunctionToCosine()
virtual void BuildKernelLookupTable()
Build the lookup tables used for the interpolation.
void SetWindowFunctionToLanczos()
void UseWindowParameterOff()
void GetBlurFactors(double f[3])
int GetUseWindowParameter()
void SetWindowFunctionToBlackmanNuttall3()
void GetInterpolationFunc(void(**doublefunc)(vtkInterpolationInfo *, const double[3], double *)) override
Get the interpolation functions.
void SetRenormalization(int renormalization)
Turn off renormalization.
void SetWindowFunctionToBlackmanHarris3()
void SetUseWindowParameter(int val)
Turn this on in order to use SetWindowParameter.
void SetWindowFunctionToBlackmanNuttall4()
void SetWindowFunctionToNuttall()
void InternalUpdate() override
Update the interpolator.
void SetAntialiasing(int antialiasing)
Turn on antialiasing.
void FreePrecomputedWeights(vtkInterpolationWeights *&weights) override
Free the precomputed weights.
~vtkImageSincInterpolator() override
void GetInterpolationFunc(void(**floatfunc)(vtkInterpolationInfo *, const float[3], float *)) override
void SetWindowHalfWidth(int n)
Set the window half-width, this must be an integer between 1 and 16, with a default value of 3.
void GetRowInterpolationFunc(void(**doublefunc)(vtkInterpolationWeights *, int, int, int, double *, int)) override
Get the row interpolation functions.
void SetBlurFactors(const double f[3])
void PrecomputeWeightsForExtent(const float matrix[16], const int extent[6], int newExtent[6], vtkInterpolationWeights *&weights) override
void SetWindowFunctionToHann()
void UseWindowParameterOn()
virtual void FreeKernelLookupTable()
Free the kernel lookup tables.
void ComputeSupportSize(const double matrix[16], int support[3]) override
Get the support size for use in computing update extents.
void SetWindowFunctionToBlackman()
static vtkImageSincInterpolator * New()
double GetWindowParameter()
bool IsSeparable() override
Returns true if the interpolator supports weight precomputation.
void RenormalizationOff()
void SetWindowParameter(double parm)
Set the alpha parameter for the Kaiser window function.
void SetWindowFunctionToBlackmanHarris4()
void SetWindowFunctionToHamming()
void PrecomputeWeightsForExtent(const double matrix[16], const int extent[6], int newExtent[6], vtkInterpolationWeights *&weights) override
If the data is going to be sampled on a regular grid, then the interpolation weights can be precomput...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void GetRowInterpolationFunc(void(**floatfunc)(vtkInterpolationWeights *, int, int, int, float *, int)) override
void SetBlurFactors(double x, double y, double z)
Blur the image by widening the windowed sinc kernel by the specified factors for the x,...
a simple class to control print indentation
#define VTK_HAMMING_WINDOW
#define VTK_KAISER_WINDOW
#define VTK_BLACKMAN_HARRIS4
#define VTK_NUTTALL_WINDOW
#define VTK_BLACKMAN_WINDOW
#define VTK_BLACKMAN_NUTTALL4
#define VTK_LANCZOS_WINDOW
#define VTK_COSINE_WINDOW
#define VTK_BLACKMAN_HARRIS3
#define VTK_BLACKMAN_NUTTALL3
#define VTK_SIZEHINT(...)