33 #ifndef vtkImageResize_h
34 #define vtkImageResize_h
60 vtkSetClampMacro(ResizeMethod,
int, OUTPUT_DIMENSIONS, MAGNIFICATION_FACTORS);
61 vtkGetMacro(ResizeMethod,
int);
63 this->SetResizeMethod(OUTPUT_DIMENSIONS); }
65 this->SetResizeMethod(OUTPUT_SPACING); }
67 this->SetResizeMethod(MAGNIFICATION_FACTORS); }
68 virtual const char *GetResizeMethodAsString();
75 vtkSetVector3Macro(OutputDimensions,
int);
76 vtkGetVector3Macro(OutputDimensions,
int);
83 vtkSetVector3Macro(OutputSpacing,
double);
84 vtkGetVector3Macro(OutputSpacing,
double);
91 vtkSetVector3Macro(MagnificationFactors,
double);
92 vtkGetVector3Macro(MagnificationFactors,
double);
104 vtkSetMacro(Border,
int);
105 vtkBooleanMacro(Border,
int);
106 vtkGetMacro(Border,
int);
112 vtkSetMacro(Cropping,
int);
113 vtkBooleanMacro(Cropping,
int);
114 vtkGetMacro(Cropping,
int);
121 vtkSetVector6Macro(CroppingRegion,
double);
122 vtkGetVector6Macro(CroppingRegion,
double);
127 vtkSetMacro(Interpolate,
int);
128 vtkBooleanMacro(Interpolate,
int);
129 vtkGetMacro(Interpolate,
int);
160 int OutputDimensions[3];
161 double OutputSpacing[3];
162 double MagnificationFactors[3];
165 double CroppingRegion[6];
167 double IndexStretch[3];
168 double IndexTranslate[3];
interpolate data values from images
void SetResizeMethodToMagnificationFactors()
void PrintSelf(ostream &os, vtkIndent indent)
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkAbstractImageInterpolator * NNInterpolator
Generic filter that has one input..
virtual unsigned long GetMTime()
a simple class to control print indentation
topologically and geometrically regular array of data
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTKIMAGINGCORE_EXPORT
vtkAbstractImageInterpolator * Interpolator
virtual void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int extent[6], int threadId)
void SetResizeMethodToOutputSpacing()
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
void SetResizeMethodToOutputDimensions()
static vtkAlgorithm * New()
High-quality image resizing filter.