Go to the documentation of this file.
36 #ifndef vtkNIFTIImageWriter_h
37 #define vtkNIFTIImageWriter_h
39 #include "vtkIOImageModule.h"
69 vtkGetMacro(NIFTIVersion,
int);
77 vtkSetStringMacro(Description);
88 vtkGetMacro(TimeDimension,
int);
90 vtkGetMacro(TimeSpacing,
double);
104 vtkGetMacro(RescaleSlope,
double);
106 vtkGetMacro(RescaleIntercept,
double);
117 vtkGetMacro(PlanarRGB,
bool);
129 vtkGetMacro(QFac,
double);
187 const char *fname,
const char *ext1,
const char *ext2);
242 #endif // vtkNIFTIImageWriter_h
int GenerateHeader(vtkInformation *info, bool singleFile)
Generate the header information for the file.
double QFac
Is -1 if VTK slice order is opposite to NIFTI slice order, +1 otherwise.
vtkNIFTIImageHeader * GetNIFTIHeader()
vtkMatrix4x4 * SFormMatrix
static vtkNIFTIImageWriter * New()
Static method for construction.
int TimeDimension
The size and spacing of the Time dimension to use in the file.
void SetSFormMatrix(vtkMatrix4x4 *)
Set a matrix for the "sform" transformation stored in the file.
char * Description
A description of how the file was produced.
static char * ReplaceExtension(const char *fname, const char *ext1, const char *ext2)
Make a new filename by replacing extension "ext1" with "ext2".
void PrintSelf(ostream &os, vtkIndent indent) override
Print information about this object.
vtkMatrix4x4 * GetQFormMatrix()
vtkMatrix4x4 * QFormMatrix
The orientation matrices for the NIFTI file.
a simple class to control print indentation
represent and manipulate 4x4 transformation matrices
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
The main execution method, which writes the file.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkNIFTIImageHeader * OwnHeader
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
double RescaleIntercept
Information for rescaling data to quantitative units.
bool PlanarRGB
Use planar RGB instead of the default (packed).
vtkNIFTIImageHeader * NIFTIHeader
The header information.
Write NIfTI-1 and NIfTI-2 medical image files.
void SetQFormMatrix(vtkMatrix4x4 *)
Set the "qform" orientation and offset for the image data.
vtkMatrix4x4 * GetSFormMatrix()
void SetNIFTIHeader(vtkNIFTIImageHeader *hdr)
Set the NIFTI header information to use when writing the file.