Section: Visualization Toolkit IO Classes
To create an instance of class vtkMINCImageWriter, simply invoke its constructor as follows
obj = vtkMINCImageWriter
obj
is an instance of the vtkMINCImageWriter class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkMINCImageWriter = obj.NewInstance ()
vtkMINCImageWriter = obj.SafeDownCast (vtkObject o)
string = obj.GetFileExtensions ()
- Get the name of this file format.
string = obj.GetDescriptiveName ()
- Set the file name.
obj.SetFileName (string name)
- Set the file name.
obj.Write ()
- Write the data. This will attempt to stream the data
slice-by-slice through the pipeline and out to the file,
unless the whole extent of the input has already been
updated.
obj.SetDirectionCosines (vtkMatrix4x4 matrix)
- Set a matrix that describes the orientation of the data. The
three columns of this matrix should give the unit-vector
directions for the VTK x, y and z dimensions respectively.
The writer will use this information to determine how to map
the VTK dimensions to the canonical MINC dimensions, and if
necessary, the writer will re-order one or more dimensions
back-to-front to ensure that no MINC dimension ends up with
a direction cosines vector whose dot product with the canonical
unit vector for that dimension is negative.
vtkMatrix4x4 = obj.GetDirectionCosines ()
- Set a matrix that describes the orientation of the data. The
three columns of this matrix should give the unit-vector
directions for the VTK x, y and z dimensions respectively.
The writer will use this information to determine how to map
the VTK dimensions to the canonical MINC dimensions, and if
necessary, the writer will re-order one or more dimensions
back-to-front to ensure that no MINC dimension ends up with
a direction cosines vector whose dot product with the canonical
unit vector for that dimension is negative.
obj.SetRescaleSlope (double )
- Set the slope and intercept for rescaling the intensities. The
default values are zero, which indicates to the reader that no
rescaling is to be performed.
double = obj.GetRescaleSlope ()
- Set the slope and intercept for rescaling the intensities. The
default values are zero, which indicates to the reader that no
rescaling is to be performed.
obj.SetRescaleIntercept (double )
- Set the slope and intercept for rescaling the intensities. The
default values are zero, which indicates to the reader that no
rescaling is to be performed.
double = obj.GetRescaleIntercept ()
- Set the slope and intercept for rescaling the intensities. The
default values are zero, which indicates to the reader that no
rescaling is to be performed.
obj.SetImageAttributes (vtkMINCImageAttributes attributes)
- Set the image attributes, which contain patient information and
other useful metadata.
vtkMINCImageAttributes = obj.GetImageAttributes ()
- Set the image attributes, which contain patient information and
other useful metadata.
obj.SetStrictValidation (int )
- Set whether to validate that all variable attributes that
have been set are ones that are listed in the MINC standard.
obj.StrictValidationOn ()
- Set whether to validate that all variable attributes that
have been set are ones that are listed in the MINC standard.
obj.StrictValidationOff ()
- Set whether to validate that all variable attributes that
have been set are ones that are listed in the MINC standard.
int = obj.GetStrictValidation ()
- Set whether to validate that all variable attributes that
have been set are ones that are listed in the MINC standard.
obj.SetHistoryAddition (string )
- Set a string value to append to the history of the file. This
string should describe, briefly, how the file was processed.
string = obj.GetHistoryAddition ()
- Set a string value to append to the history of the file. This
string should describe, briefly, how the file was processed.