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

Subclass of AnalyzeImageIO3160, to read Dementia Research Centre (DRC) Analyze format, which is incorrectly flipped. If you call this->SetDRCMode(true) (also default), it will do DRC specific functionality, and if you call SetDRCMode(false), it will revert to standard ITK functionality. More...

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

Public Types

typedef DRCAnalyzeImageIO Self
 
typedef AnalyzeImageIO3160 Superclass
 
typedef SmartPointer< SelfPointer
 
- Public Types inherited from itk::AnalyzeImageIO3160
typedef AnalyzeImageIO3160 Self
 
typedef ImageIOBase Superclass
 
typedef SmartPointer< SelfPointer
 

Public Member Functions

virtual const char * GetClassName () const
 
bool GetDRCMode () const
 
void SetDRCMode (bool b)
 
virtual void ReadImageInformation () override
 
- Public Member Functions inherited from itk::AnalyzeImageIO3160
virtual bool CanReadFile (const char *FileNameToRead) 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 std::vector< double > GetDirection (unsigned int i) const override
 
virtual std::vector< double > GetDefaultDirection (unsigned int i) const override
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from itk::AnalyzeImageIO3160
static Pointer New ()
 

Protected Types

enum  ValidDRCAnalyzeOrientationFlags {
  ITK_DRC_ANALYZE_ORIENTATION_RAI_AXIAL = 0, ITK_DRC_ANALYZE_ORIENTATION_RSP_CORONAL = 1, ITK_DRC_ANALYZE_ORIENTATION_ASL_SAGITTAL = 2, ITK_DRC_ANALYZE_ORIENTATION_RPI_AXIAL_FLIPPED = 3,
  ITK_DRC_ANALYZE_ORIENTATION_RIP_CORONAL_FLIPPED = 4, ITK_DRC_ANALYZE_ORIENTATION_AIL_SAGITTAL_FLIPPED = 5
}
 

Protected Member Functions

 DRCAnalyzeImageIO ()
 
 ~DRCAnalyzeImageIO ()
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
ImageIOBase::ByteOrder CheckAnalyzeEndian (const struct dsr &temphdr)
 
void SwapHeaderBytesIfNecessary (ImageIOBase::ByteOrder &byteOrder, struct dsr *const imageheader)
 
- Protected Member Functions inherited from itk::AnalyzeImageIO3160
 AnalyzeImageIO3160 ()
 
 ~AnalyzeImageIO3160 ()
 
void PrintSelf (std::ostream &os, Indent indent) const override
 

Detailed Description

Subclass of AnalyzeImageIO3160, to read Dementia Research Centre (DRC) Analyze format, which is incorrectly flipped. If you call this->SetDRCMode(true) (also default), it will do DRC specific functionality, and if you call SetDRCMode(false), it will revert to standard ITK functionality.

Member Typedef Documentation

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

Standard class typedefs.

Member Enumeration Documentation

Enumerator
ITK_DRC_ANALYZE_ORIENTATION_RAI_AXIAL 
ITK_DRC_ANALYZE_ORIENTATION_RSP_CORONAL 

Denotes an axial data orientation x=R->L, y=A->P, z=I->S

ITK_DRC_ANALYZE_ORIENTATION_ASL_SAGITTAL 

Denotes a coronal data orientation, x=R->L, y=S->I, z=P->A

ITK_DRC_ANALYZE_ORIENTATION_RPI_AXIAL_FLIPPED 

Denotes a sagittal data orientation, x=A->P, y=S->I, z=L->R

ITK_DRC_ANALYZE_ORIENTATION_RIP_CORONAL_FLIPPED 

THESE ARE NOT YET CORRECTLY HANDLED - No available test data.

ITK_DRC_ANALYZE_ORIENTATION_AIL_SAGITTAL_FLIPPED 

THESE ARE NOT YET CORRECTLY HANDLED - No available test data.

Constructor & Destructor Documentation

itk::DRCAnalyzeImageIO::DRCAnalyzeImageIO ( )
protected
itk::DRCAnalyzeImageIO::~DRCAnalyzeImageIO ( )
protected

Member Function Documentation

ImageIOBase::ByteOrder itk::DRCAnalyzeImageIO::CheckAnalyzeEndian ( const struct dsr temphdr)
protected

This should be protected in base class, but it isn't.

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

Run-time type information (and related methods).

Reimplemented from itk::AnalyzeImageIO3160.

bool itk::DRCAnalyzeImageIO::GetDRCMode ( ) const
inline

Returns true if we are using DRC mode, and false otherwise. Defaults to true.

static Pointer itk::DRCAnalyzeImageIO::New ( )
static

Method for creation through the object factory.

void itk::DRCAnalyzeImageIO::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
overrideprotected
void itk::DRCAnalyzeImageIO::ReadImageInformation ( )
overridevirtual

Overriden from base class.

Reimplemented from itk::AnalyzeImageIO3160.

void itk::DRCAnalyzeImageIO::SetDRCMode ( bool  b)
inline

Sets the DRC mode flag. Defaults to true.

void itk::DRCAnalyzeImageIO::SwapHeaderBytesIfNecessary ( ImageIOBase::ByteOrder &  byteOrder,
struct dsr *const  imageheader 
)
protected

This should be protected in base class, but it isn't.


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