VTK
|
A writer for MINC files. More...
#include <vtkMINCImageWriter.h>
A writer for MINC files.
MINC is a NetCDF-based medical image file format that was developed at the Montreal Neurological Institute in 1992. The data is written slice-by-slice, and this writer is therefore suitable for streaming MINC data that is larger than the memory size through VTK. This writer can also produce files with up to 4 dimensions, where the fourth dimension is provided by using AddInput() to specify multiple input data sets. If you want to set header information for the file, you must supply a vtkMINCImageAttributes
Definition at line 84 of file vtkMINCImageWriter.h.
Reimplemented from vtkImageWriter.
Definition at line 87 of file vtkMINCImageWriter.h.
vtkMINCImageWriter::vtkMINCImageWriter | ( | ) | [protected] |
vtkMINCImageWriter::~vtkMINCImageWriter | ( | ) | [protected] |
static int vtkMINCImageWriter::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkImageWriter.
virtual int vtkMINCImageWriter::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkImageWriter.
static vtkMINCImageWriter* vtkMINCImageWriter::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkImageWriter.
virtual vtkObjectBase* vtkMINCImageWriter::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkImageWriter.
Reimplemented from vtkImageWriter.
static vtkMINCImageWriter* vtkMINCImageWriter::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkImageWriter.
virtual void vtkMINCImageWriter::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkImageWriter.
virtual const char* vtkMINCImageWriter::GetFileExtensions | ( | ) | [inline, virtual] |
Get the entension for this file format.
Definition at line 94 of file vtkMINCImageWriter.h.
virtual const char* vtkMINCImageWriter::GetDescriptiveName | ( | ) | [inline, virtual] |
Get the name of this file format.
Definition at line 100 of file vtkMINCImageWriter.h.
virtual void vtkMINCImageWriter::SetFileName | ( | const char * | name | ) | [virtual] |
Set the file name.
Reimplemented from vtkImageWriter.
virtual void vtkMINCImageWriter::Write | ( | ) | [virtual] |
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.
Reimplemented from vtkImageWriter.
virtual void vtkMINCImageWriter::SetDirectionCosines | ( | vtkMatrix4x4 * | matrix | ) | [virtual] |
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.
virtual vtkMatrix4x4* vtkMINCImageWriter::GetDirectionCosines | ( | ) | [virtual] |
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.
virtual void vtkMINCImageWriter::SetRescaleSlope | ( | double | ) | [virtual] |
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.
virtual double vtkMINCImageWriter::GetRescaleSlope | ( | ) | [virtual] |
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.
virtual void vtkMINCImageWriter::SetRescaleIntercept | ( | double | ) | [virtual] |
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.
virtual double vtkMINCImageWriter::GetRescaleIntercept | ( | ) | [virtual] |
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.
virtual void vtkMINCImageWriter::SetImageAttributes | ( | vtkMINCImageAttributes * | attributes | ) | [virtual] |
Set the image attributes, which contain patient information and other useful metadata.
virtual vtkMINCImageAttributes* vtkMINCImageWriter::GetImageAttributes | ( | ) | [inline, virtual] |
Set the image attributes, which contain patient information and other useful metadata.
Definition at line 139 of file vtkMINCImageWriter.h.
virtual void vtkMINCImageWriter::SetStrictValidation | ( | int | ) | [virtual] |
Set whether to validate that all variable attributes that have been set are ones that are listed in the MINC standard.
virtual void vtkMINCImageWriter::StrictValidationOn | ( | ) | [virtual] |
Set whether to validate that all variable attributes that have been set are ones that are listed in the MINC standard.
virtual void vtkMINCImageWriter::StrictValidationOff | ( | ) | [virtual] |
Set whether to validate that all variable attributes that have been set are ones that are listed in the MINC standard.
virtual int vtkMINCImageWriter::GetStrictValidation | ( | ) | [virtual] |
Set whether to validate that all variable attributes that have been set are ones that are listed in the MINC standard.
virtual void vtkMINCImageWriter::SetHistoryAddition | ( | const char * | ) | [virtual] |
Set a string value to append to the history of the file. This string should describe, briefly, how the file was processed.
virtual char* vtkMINCImageWriter::GetHistoryAddition | ( | ) | [virtual] |
Set a string value to append to the history of the file. This string should describe, briefly, how the file was processed.
virtual int vtkMINCImageWriter::OpenNetCDFFile | ( | const char * | filename, |
int & | ncid | ||
) | [protected, virtual] |
virtual int vtkMINCImageWriter::CloseNetCDFFile | ( | int | ncid | ) | [protected, virtual] |
virtual int vtkMINCImageWriter::IndexFromDimensionName | ( | const char * | dimName | ) | [protected, virtual] |
virtual void vtkMINCImageWriter::ComputePermutationFromOrientation | ( | int | permutation[3], |
int | flip[3] | ||
) | [protected, virtual] |
virtual int vtkMINCImageWriter::CreateMINCDimensions | ( | vtkImageData * | input, |
int | timeStep, | ||
int * | dimids | ||
) | [protected, virtual] |
virtual int vtkMINCImageWriter::CreateMINCVariables | ( | vtkImageData * | input, |
int | timeStep, | ||
int * | dimids | ||
) | [protected, virtual] |
virtual int vtkMINCImageWriter::WriteMINCFileAttributes | ( | vtkImageData * | input, |
int | timeStep | ||
) | [protected, virtual] |
virtual int vtkMINCImageWriter::WriteMINCData | ( | vtkImageData * | input, |
int | frameNumber, | ||
int | wholeExt[6], | ||
int | upExt[6] | ||
) | [protected, virtual] |
virtual void vtkMINCImageWriter::FindRescale | ( | double & | rescaleSlope, |
double & | rescaleIntercept | ||
) | [protected, virtual] |
virtual void vtkMINCImageWriter::FindMINCValidRange | ( | double | range[2] | ) | [protected, virtual] |
virtual int vtkMINCImageWriter::FillInputPortInformation | ( | int | port, |
vtkInformation * | info | ||
) | [protected, virtual] |
These method should be reimplemented by subclasses that have more than a single input or single output. See vtkAlgorithm for more information.
Reimplemented from vtkImageAlgorithm.
virtual int vtkMINCImageWriter::RequestInformation | ( | vtkInformation * | request, |
vtkInformationVector ** | inputVector, | ||
vtkInformationVector * | outputVector | ||
) | [protected, virtual] |
Subclasses can reimplement this method to collect information from their inputs and set information for their outputs.
Reimplemented from vtkImageAlgorithm.
virtual int vtkMINCImageWriter::RequestUpdateExtent | ( | vtkInformation * | , |
vtkInformationVector ** | , | ||
vtkInformationVector * | |||
) | [protected, virtual] |
Subclasses can reimplement this method to translate the update extent requests from each output port into update extent requests for the input connections.
Reimplemented from vtkImageAlgorithm.
virtual int vtkMINCImageWriter::RequestData | ( | vtkInformation * | request, |
vtkInformationVector ** | inputVector, | ||
vtkInformationVector * | outputVector | ||
) | [protected, virtual] |
This is called in response to a REQUEST_DATA request from the executive. Subclasses should override either this method or the ExecuteDataWithInformation method in order to generate data for their outputs. For images, the output arrays will already be allocated, so all that is necessary is to fill in the voxel values.
Reimplemented from vtkImageWriter.
int vtkMINCImageWriter::MINCImageType [protected] |
Definition at line 162 of file vtkMINCImageWriter.h.
int vtkMINCImageWriter::MINCImageTypeSigned [protected] |
Definition at line 163 of file vtkMINCImageWriter.h.
int vtkMINCImageWriter::MINCImageMinMaxDims [protected] |
Definition at line 164 of file vtkMINCImageWriter.h.
vtkMatrix4x4* vtkMINCImageWriter::DirectionCosines [protected] |
Definition at line 166 of file vtkMINCImageWriter.h.
double vtkMINCImageWriter::RescaleSlope [protected] |
Definition at line 167 of file vtkMINCImageWriter.h.
double vtkMINCImageWriter::RescaleIntercept [protected] |
Definition at line 168 of file vtkMINCImageWriter.h.
int vtkMINCImageWriter::StrictValidation [protected] |
Definition at line 169 of file vtkMINCImageWriter.h.
int vtkMINCImageWriter::DataUpdateExtent[6] [protected] |
Definition at line 170 of file vtkMINCImageWriter.h.
int vtkMINCImageWriter::FileDataType [protected] |
Definition at line 172 of file vtkMINCImageWriter.h.
double vtkMINCImageWriter::FileValidRange[2] [protected] |
Definition at line 173 of file vtkMINCImageWriter.h.
double vtkMINCImageWriter::InternalRescaleSlope [protected] |
Definition at line 174 of file vtkMINCImageWriter.h.
double vtkMINCImageWriter::InternalRescaleIntercept [protected] |
Definition at line 175 of file vtkMINCImageWriter.h.
Definition at line 177 of file vtkMINCImageWriter.h.
vtkStringArray* vtkMINCImageWriter::FileDimensionNames [protected] |
Definition at line 179 of file vtkMINCImageWriter.h.
Definition at line 181 of file vtkMINCImageWriter.h.
int vtkMINCImageWriter::Permutation[3] [protected] |
Definition at line 183 of file vtkMINCImageWriter.h.
int vtkMINCImageWriter::Flip[3] [protected] |
Definition at line 184 of file vtkMINCImageWriter.h.
int vtkMINCImageWriter::MismatchedInputs [protected] |
Definition at line 186 of file vtkMINCImageWriter.h.
int vtkMINCImageWriter::MINCFileId [protected] |
Definition at line 187 of file vtkMINCImageWriter.h.
char* vtkMINCImageWriter::HistoryAddition [protected] |
Definition at line 189 of file vtkMINCImageWriter.h.