 |
VTK
9.1.0
|
Go to the documentation of this file.
33 #ifndef vtkNIFTIImageWriter_h
34 #define vtkNIFTIImageWriter_h
36 #include "vtkIOImageModule.h"
65 vtkSetMacro(NIFTIVersion,
int);
66 vtkGetMacro(NIFTIVersion,
int);
74 vtkSetStringMacro(Description);
75 vtkGetStringMacro(Description);
85 vtkGetMacro(TimeDimension,
int);
86 vtkSetMacro(TimeDimension,
int);
87 vtkGetMacro(TimeSpacing,
double);
88 vtkSetMacro(TimeSpacing,
double);
100 vtkSetMacro(RescaleSlope,
double);
101 vtkGetMacro(RescaleSlope,
double);
102 vtkSetMacro(RescaleIntercept,
double);
103 vtkGetMacro(RescaleIntercept,
double);
114 vtkGetMacro(PlanarRGB,
bool);
115 vtkSetMacro(PlanarRGB,
bool);
116 vtkBooleanMacro(PlanarRGB,
bool);
125 vtkSetMacro(QFac,
double);
126 vtkGetMacro(QFac,
double);
237 #endif // vtkNIFTIImageWriter_h
~vtkNIFTIImageWriter() override
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()
Set the NIFTI header information to use when writing the file.
vtkMatrix4x4 * SFormMatrix
The orientation matrices for the NIFTI file.
static vtkNIFTIImageWriter * New()
Static method for construction.
double TimeSpacing
The size and spacing of the Time dimension to use in the file.
int TimeDimension
The size and spacing of the Time dimension to use in the file.
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
The main execution method, which writes 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.
double RescaleSlope
Information for rescaling data to quantitative units.
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
static char * ReplaceExtension(const char *filename, const char *ext1, const char *ext2)
Make a new filename by replacing extension "ext1" with "ext2".
vtkNIFTIImageHeader * OwnHeader
The header information.
double RescaleIntercept
Information for rescaling data to quantitative units.
bool PlanarRGB
Use planar RGB instead of the default (packed).
vtkNIFTIImageHeader * NIFTIHeader
The header information.
int NIFTIVersion
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.