VTK
vtkImageResample.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkImageResample.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
31#ifndef vtkImageResample_h
32#define vtkImageResample_h
33
34
35#include "vtkImagingCoreModule.h" // For export macro
36#include "vtkImageReslice.h"
37
38class VTKIMAGINGCORE_EXPORT vtkImageResample : public vtkImageReslice
39{
40public:
43 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
44
49 void SetAxisOutputSpacing(int axis, double spacing);
50
52
56 void SetAxisMagnificationFactor(int axis, double factor);
57 double GetAxisMagnificationFactor(int axis, vtkInformation *inInfo=0);
59
61
67 vtkSetMacro(Dimensionality,int);
68 vtkGetMacro(Dimensionality,int);
70
71protected:
74
75 double MagnificationFactors[3];
76 double OutputSpacing[3];
78
81 vtkInformationVector *) VTK_OVERRIDE;
82
83private:
84 vtkImageResample(const vtkImageResample&) VTK_DELETE_FUNCTION;
85 void operator=(const vtkImageResample&) VTK_DELETE_FUNCTION;
86};
87
88#endif
Resamples an image to be larger or smaller.
void SetAxisMagnificationFactor(int axis, double factor)
Set/Get Magnification factors.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkImageResample * New()
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
double GetAxisMagnificationFactor(int axis, vtkInformation *inInfo=0)
void SetAxisOutputSpacing(int axis, double spacing)
Set desired spacing.
Reslices a volume along a new set of axes.
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ spacing
Definition: vtkX3D.h:481
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.