38 #ifndef vtkNIFTIImageReader_h
39 #define vtkNIFTIImageReader_h
41 #include "vtkIOImageModule.h"
70 return ".nii .nii.gz .img .img.gz .hdr .hdr.gz"; }
91 vtkGetMacro(TimeAsVector,
bool);
120 vtkGetMacro(PlanarRGB,
bool);
195 static bool CheckExtension(
const char *fname,
const char *ext);
205 static char *ReplaceExtension(
206 const char *fname,
const char *ext1,
const char *ext2);
269 #endif // vtkNIFTIImageReader_h
virtual const char * GetDescriptiveName()
Return a descriptive name that might be useful in a GUI.
double QFac
Is -1 if VTK slice order is opposite to NIFTI slice order, +1 otherwise.
double GetQFac()
QFac gives the slice order in the NIFTI file versus the VTK image.
represent and manipulate 4x4 transformation matrices
static vtkImageReader2 * New()
vtkMatrix4x4 * GetQFormMatrix()
Get a matrix that gives the "qform" orientation and offset for the data.
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
double GetRescaleSlope()
Get the slope and intercept for rescaling the scalar values.
Read NIfTI-1 and NIfTI-2 medical image files.
virtual const char * GetFileExtensions()
Valid extensions for this file type.
virtual int CanReadFile(const char *vtkNotUsed(fname))
Return non zero if the reader can read the given file name.
double RescaleIntercept
Information for rescaling data to quantitative units.
int GetTimeDimension()
Get the time dimension that was stored in the NIFTI header.
a simple class to control print indentation
bool PlanarRGB
Use planar RGB instead of the default (packed).
double GetRescaleIntercept()
double RescaleSlope
Information for rescaling data to quantitative units.
Superclass of binary file readers.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
vtkMatrix4x4 * GetSFormMatrix()
Get a matrix that gives the "sform" orientation and offset for the data.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkNIFTIImageHeader * NIFTIHeader
A copy of the header from the file that was most recently read.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called in response to a REQUEST_DATA request from the executive.
vtkMatrix4x4 * SFormMatrix
The orientation matrices for the NIFTI file.
vtkMatrix4x4 * QFormMatrix
The orientation matrices for the NIFTI file.
bool TimeAsVector
Read the time dimension as if it was a vector dimension.