35 #ifndef vtkNIFTIReader_h
36 #define vtkNIFTIReader_h
38 #include "vtkImageReader2.h"
39 #include "vtkDICOMModule.h"
40 #include "vtkDICOMConfig.h"
43 #if defined(VTK_ABI_NAMESPACE_BEGIN)
44 VTK_ABI_NAMESPACE_BEGIN
49 #if defined(VTK_ABI_NAMESPACE_BEGIN)
66 void PrintSelf(ostream& os, vtkIndent indent) VTK_DICOM_OVERRIDE;
71 return ".nii .nii.gz .img .img.gz .hdr .hdr.gz"; }
89 vtkGetMacro(TimeAsVector,
int);
90 vtkSetMacro(TimeAsVector,
int);
91 vtkBooleanMacro(TimeAsVector,
int);
95 int GetTimeDimension() {
return this->Dim[4]; }
97 double GetTimeSpacing() {
return this->PixDim[4]; }
109 double GetRescaleIntercept() {
return this->RescaleIntercept; }
120 vtkGetMacro(PlanarRGB,
bool);
121 vtkSetMacro(PlanarRGB,
bool);
122 vtkBooleanMacro(PlanarRGB,
bool);
181 int RequestInformation(
182 vtkInformation* request, vtkInformationVector** inputVector,
183 vtkInformationVector* outputVector) VTK_DICOM_OVERRIDE;
187 vtkInformation* request, vtkInformationVector** inputVector,
188 vtkInformationVector* outputVector) VTK_DICOM_OVERRIDE;
195 static
bool CheckExtension(const
char *fname, const
char *ext);
205 static
char *ReplaceExtension(
206 const
char *fname, const
char *ext1, const
char *ext2);
218 double RescaleIntercept;
225 vtkMatrix4x4 *QFormMatrix;
226 vtkMatrix4x4 *SFormMatrix;
241 #ifdef VTK_DICOM_DELETE
Superclass of binary file readers.
Definition: vtkImageReader2.h:53
virtual const char * GetFileExtensions()
Definition: vtkImageReader2.h:289
Read NIfTI-1 and NIfTI-2 medical image files.
Definition: vtkNIFTIReader.h:59
void PrintSelf(ostream &os, vtkIndent indent) VTK_DICOM_OVERRIDE
Print information about this object.
static vtkNIFTIReader * New()
Static method for construction.
double GetRescaleSlope()
Get the slope and intercept for rescaling the scalar values.
Definition: vtkNIFTIReader.h:108
const char * GetDescriptiveName() VTK_DICOM_OVERRIDE
Return a descriptive name that might be useful in a GUI.
Definition: vtkNIFTIReader.h:74
double GetQFac()
QFac gives the slice order in the NIFTI file versus the VTK image.
Definition: vtkNIFTIReader.h:136
vtkMatrix4x4 * GetQFormMatrix()
Get a matrix that gives the "qform" orientation and offset for the data.
Definition: vtkNIFTIReader.h:152
int CanReadFile(const char *filename) VTK_DICOM_OVERRIDE
Return true if this reader can read the given file.
vtkMatrix4x4 * GetSFormMatrix()
Get a matrix that gives the "sform" orientation and offset for the data.
Definition: vtkNIFTIReader.h:168