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