RTK  1.4.0
Reconstruction Toolkit
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Static Protected Member Functions | Protected Attributes | List of all members
rtk::EdfImageIO Class Reference

#include <rtkEdfImageIO.h>

+ Inheritance diagram for rtk::EdfImageIO:
+ Collaboration diagram for rtk::EdfImageIO:

Classes

struct  table
 
struct  table3
 

Public Types

typedef itk::SmartPointer< SelfPointer
 
typedef EdfImageIO Self
 
typedef itk::ImageIOBase Superclass
 

Public Member Functions

bool CanReadFile (const char *FileNameToRead) override
 
bool CanWriteFile (const char *filename) override
 
virtual ::itk::LightObject::Pointer CreateAnother () const
 
 EdfImageIO ()
 
virtual const char * GetNameOfClass () const
 
void Read (void *buffer) override
 
void ReadImageInformation () override
 
void Write (const void *buffer) override
 
virtual void WriteImageInformation (bool keepOfStream)
 
void WriteImageInformation () override
 

Static Public Member Functions

static Pointer New ()
 

Protected Types

enum  DataType {
  U_CHAR_DATATYPE = 0,
  CHAR_DATATYPE,
  U_SHORT_DATATYPE,
  SHORT_DATATYPE,
  U_INT_DATATYPE,
  INT_DATATYPE,
  U_L_INT_DATATYPE,
  L_INT_DATATYPE,
  FLOAT_DATATYPE,
  DOUBLE_DATATYPE,
  UNKNOWN_DATATYPE = -1
}
 

Static Protected Member Functions

static char * edf_findInHeader (char *header, const char *key)
 
static int lookup_table3_nth (const struct table3 *tbl, const char *search_str)
 
static int lookup_table_nth (const struct table *tbl, const char *search_str)
 

Protected Attributes

std::string m_BinaryFileName
 
int m_BinaryFileSkip
 

Detailed Description

Class for reading Edf image file format. Edf is the format of X-ray projection images at the ESRF.

Author
Simon Rit

Definition at line 38 of file rtkEdfImageIO.h.

Member Typedef Documentation

Definition at line 44 of file rtkEdfImageIO.h.

Standard class typedefs.

Definition at line 42 of file rtkEdfImageIO.h.

Definition at line 43 of file rtkEdfImageIO.h.

Member Enumeration Documentation

enum rtk::EdfImageIO::DataType
protected
Enumerator
U_CHAR_DATATYPE 
CHAR_DATATYPE 
U_SHORT_DATATYPE 
SHORT_DATATYPE 
U_INT_DATATYPE 
INT_DATATYPE 
U_L_INT_DATATYPE 
L_INT_DATATYPE 
FLOAT_DATATYPE 
DOUBLE_DATATYPE 
UNKNOWN_DATATYPE 

Definition at line 81 of file rtkEdfImageIO.h.

Constructor & Destructor Documentation

rtk::EdfImageIO::EdfImageIO ( )
inline

Definition at line 46 of file rtkEdfImageIO.h.

References CanReadFile(), Read(), ReadImageInformation(), and WriteImageInformation().

Member Function Documentation

bool rtk::EdfImageIO::CanReadFile ( const char *  FileNameToRead)
overridevirtual

Implements itk::ImageIOBase.

Referenced by EdfImageIO().

bool rtk::EdfImageIO::CanWriteFile ( const char *  filename)
overridevirtual

Implements itk::ImageIOBase.

Referenced by WriteImageInformation().

virtual::itk::LightObject::Pointer rtk::EdfImageIO::CreateAnother ( ) const
static char* rtk::EdfImageIO::edf_findInHeader ( char *  header,
const char *  key 
)
staticprotected
virtual const char* rtk::EdfImageIO::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::ImageIOBase.

static int rtk::EdfImageIO::lookup_table3_nth ( const struct table3 tbl,
const char *  search_str 
)
inlinestaticprotected

Definition at line 128 of file rtkEdfImageIO.h.

References rtk::EdfImageIO::table::key.

static int rtk::EdfImageIO::lookup_table_nth ( const struct table tbl,
const char *  search_str 
)
inlinestaticprotected

Definition at line 117 of file rtkEdfImageIO.h.

References rtk::EdfImageIO::table::key.

static Pointer rtk::EdfImageIO::New ( )
static

Method for creation through the object factory.

void rtk::EdfImageIO::Read ( void *  buffer)
overridevirtual

Implements itk::ImageIOBase.

Referenced by EdfImageIO().

void rtk::EdfImageIO::ReadImageInformation ( )
overridevirtual

Implements itk::ImageIOBase.

Referenced by EdfImageIO().

void rtk::EdfImageIO::Write ( const void *  buffer)
overridevirtual

Implements itk::ImageIOBase.

Referenced by WriteImageInformation().

virtual void rtk::EdfImageIO::WriteImageInformation ( bool  keepOfStream)
virtual
void rtk::EdfImageIO::WriteImageInformation ( )
inlineoverridevirtual

Implements itk::ImageIOBase.

Definition at line 65 of file rtkEdfImageIO.h.

References CanWriteFile(), and Write().

Referenced by EdfImageIO().

Member Data Documentation

std::string rtk::EdfImageIO::m_BinaryFileName
protected

Definition at line 74 of file rtkEdfImageIO.h.

int rtk::EdfImageIO::m_BinaryFileSkip
protected

Definition at line 75 of file rtkEdfImageIO.h.


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