33 #ifndef vtkNIFTIWriter_h
34 #define vtkNIFTIWriter_h
36 #include "vtkImageWriter.h"
37 #include "vtkDICOMModule.h"
38 #include "vtkDICOMConfig.h"
41 #if defined(VTK_ABI_NAMESPACE_BEGIN)
42 VTK_ABI_NAMESPACE_BEGIN
47 #if defined(VTK_ABI_NAMESPACE_BEGIN)
68 void PrintSelf(ostream& os, vtkIndent indent) VTK_DICOM_OVERRIDE;
77 vtkSetMacro(NIFTIVersion,
int);
78 vtkGetMacro(NIFTIVersion,
int);
82 vtkSetStringMacro(Description);
84 vtkGetStringMacro(Description);
94 vtkGetMacro(TimeDimension,
int);
95 vtkSetMacro(TimeDimension,
int);
96 vtkGetMacro(TimeSpacing,
double);
97 vtkSetMacro(TimeSpacing,
double);
109 vtkSetMacro(RescaleSlope,
double);
110 vtkGetMacro(RescaleSlope,
double);
111 vtkSetMacro(RescaleIntercept,
double);
112 vtkGetMacro(RescaleIntercept,
double);
123 vtkGetMacro(PlanarRGB,
bool);
124 vtkSetMacro(PlanarRGB,
bool);
125 vtkBooleanMacro(PlanarRGB,
bool);
134 vtkSetMacro(QFac,
double);
135 vtkGetMacro(QFac,
double);
147 vtkMatrix4x4 *GetQFormMatrix() {
return this->QFormMatrix; }
159 vtkMatrix4x4 *GetSFormMatrix() {
return this->SFormMatrix; }
185 void SetDataByteOrderToBigEndian() {
186 this->SetDataByteOrder(BigEndian); }
187 void SetDataByteOrderToLittleEndian() {
188 this->SetDataByteOrder(LittleEndian); }
189 vtkGetMacro(DataByteOrder, EndianEnum);
197 int GenerateHeader(vtkInformation *info,
bool singleFile);
200 int RequestData(vtkInformation *request,
201 vtkInformationVector** inputVector,
202 vtkInformationVector* outputVector) VTK_DICOM_OVERRIDE;
210 static
char *ReplaceExtension(
211 const
char *fname, const
char *ext1, const
char *ext2);
218 double RescaleIntercept;
225 vtkMatrix4x4 *QFormMatrix;
226 vtkMatrix4x4 *SFormMatrix;
243 #ifdef VTK_DICOM_DELETE
Writes images to files.
Definition: vtkImageWriter.h:33
Write NIfTI-1 and NIfTI-2 medical image files.
Definition: vtkNIFTIWriter.h:54
void SetSFormMatrix(vtkMatrix4x4 *)
Set a matrix for the "sform" transformation stored in the file.
void PrintSelf(ostream &os, vtkIndent indent) VTK_DICOM_OVERRIDE
Print information about this object.
void SetNIFTIHeader(vtkNIFTIHeader *hdr)
Set the NIFTI header information to use when writing the file.
EndianEnum
Endianness of output file.
Definition: vtkNIFTIWriter.h:58
void SetQFormMatrix(vtkMatrix4x4 *)
Set the "qform" orientation and offset for the image data.
static vtkNIFTIWriter * New()
Static method for construction.