Section: Visualization Toolkit Imaging Classes
To create an instance of class vtkImageResample, simply invoke its constructor as follows
obj = vtkImageResample
obj
is an instance of the vtkImageResample class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkImageResample = obj.NewInstance ()
vtkImageResample = obj.SafeDownCast (vtkObject o)
obj.SetAxisOutputSpacing (int axis, double spacing)
- Set desired spacing.
Zero is a reserved value indicating spacing has not been set.
obj.SetAxisMagnificationFactor (int axis, double factor)
- Set/Get Magnification factors.
Zero is a reserved value indicating values have not been computed.
double = obj.GetAxisMagnificationFactor (int axis, vtkInformation inInfo)
- Set/Get Magnification factors.
Zero is a reserved value indicating values have not been computed.
obj.SetDimensionality (int )
- Dimensionality is the number of axes which are considered during
execution. To process images dimensionality would be set to 2.
This has the same effect as setting the magnification of the third
axis to 1.0
int = obj.GetDimensionality ()
- Dimensionality is the number of axes which are considered during
execution. To process images dimensionality would be set to 2.
This has the same effect as setting the magnification of the third
axis to 1.0