NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
itk::NiftiImageIO3201 Class Reference

Class that defines how to read Nifti file format. Nifti IMAGE FILE FORMAT - As much information as I can determine from sourceforge.net/projects/Niftilib. More...

Inheritance diagram for itk::NiftiImageIO3201:
Inheritance graph
[legend]
Collaboration diagram for itk::NiftiImageIO3201:
Collaboration graph
[legend]

Public Types

typedef NiftiImageIO3201 Self
 
typedef ImageIOBase Superclass
 
typedef SmartPointer< SelfPointer
 

Public Member Functions

virtual const char * GetClassName () const
 
virtual bool CanReadFile (const char *FileNameToRead) override
 
virtual void ReadImageInformation () override
 
virtual void Read (void *buffer) override
 
virtual bool CanWriteFile (const char *FileNameToWrite) override
 
virtual void WriteImageInformation () override
 
virtual void Write (const void *buffer) override
 
virtual ImageIORegion GenerateStreamableReadRegionFromRequestedRegion (const ImageIORegion &requestedRegion) const override
 
virtual void SetLegacyAnalyze75Mode (bool _arg)
 
virtual bool GetLegacyAnalyze75Mode () const
 
virtual bool SupportsDimension (unsigned long dim) override
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 NiftiImageIO3201 ()
 
 ~NiftiImageIO3201 ()
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
virtual bool GetUseLegacyModeForTwoFileWriting (void) const
 

Detailed Description

Class that defines how to read Nifti file format. Nifti IMAGE FILE FORMAT - As much information as I can determine from sourceforge.net/projects/Niftilib.

Author
Hans J. Johnson

Member Typedef Documentation

typedef SmartPointer<Self> itk::NiftiImageIO3201::Pointer

Standard class typedefs.

typedef ImageIOBase itk::NiftiImageIO3201::Superclass

Constructor & Destructor Documentation

itk::NiftiImageIO3201::NiftiImageIO3201 ( )
protected
itk::NiftiImageIO3201::~NiftiImageIO3201 ( )
protected

Member Function Documentation

bool itk::NiftiImageIO3201::CanReadFile ( const char *  FileNameToRead)
overridevirtual

Determine if the file can be read with this ImageIO implementation.

Author
Hans J Johnson
Parameters
FileNameToReadThe name of the file to test for reading.
Postcondition
Sets classes ImageIOBase::m_FileName variable to be FileNameToWrite
Returns
Returns true if this ImageIO can read the file specified.
bool itk::NiftiImageIO3201::CanWriteFile ( const char *  FileNameToWrite)
overridevirtual

Determine if the file can be written with this ImageIO implementation.

Parameters
FileNameToWriteThe name of the file to test for writing.
Author
Hans J. Johnson
Postcondition
Sets classes ImageIOBase::m_FileName variable to be FileNameToWrite
Returns
Returns true if this ImageIO can write the file specified.
ImageIORegion itk::NiftiImageIO3201::GenerateStreamableReadRegionFromRequestedRegion ( const ImageIORegion &  requestedRegion) const
overridevirtual

Calculate the region of the image that can be efficiently read in response to a given requested region.

virtual const char* itk::NiftiImageIO3201::GetClassName ( ) const
virtual

Run-time type information (and related methods).

virtual bool itk::NiftiImageIO3201::GetLegacyAnalyze75Mode ( ) const
virtual
virtual bool itk::NiftiImageIO3201::GetUseLegacyModeForTwoFileWriting ( void  ) const
inlineprotectedvirtual
static Pointer itk::NiftiImageIO3201::New ( )
static

Method for creation through the object factory.

void itk::NiftiImageIO3201::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
overrideprotected
void itk::NiftiImageIO3201::Read ( void buffer)
overridevirtual

Reads the data from disk into the memory buffer provided.

void itk::NiftiImageIO3201::ReadImageInformation ( )
overridevirtual

Set the spacing and dimension information for the set filename.

virtual void itk::NiftiImageIO3201::SetLegacyAnalyze75Mode ( bool  _arg)
virtual

A mode to allow the Nifti filter to read and write to the LegacyAnalyze75 format as interpreted by the nifti library maintainers. This format does not properly respect the file orientation fields. The itkAnalyzeImageIO file reader/writer should be used to match the Analyze75 file definitions as specified by the Mayo Clinic BIR laboratory. By default this is set to false.

bool itk::NiftiImageIO3201::SupportsDimension ( unsigned long  dim)
overridevirtual

Supports dimensions 2, 3 and 4. The same fix is applied by the MITK in their internal (not exposed) NIfTI reader.

void itk::NiftiImageIO3201::Write ( const void buffer)
overridevirtual

Writes the data to disk from the memory buffer provided. Make sure that the IORegions has been set properly.

Write the image Information before writing data

Image intent is vector image

void itk::NiftiImageIO3201::WriteImageInformation ( void  )
overridevirtual

Set the spacing and dimension information for the set filename.

For Nifti this does not write a file, it only fills in the appropriate header information.


The documentation for this class was generated from the following files: