RTK  2.0.1
Reconstruction Toolkit
Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
rtk::XimImageIO Class Reference

#include <rtkXimImageIO.h>

+ Inheritance diagram for rtk::XimImageIO:
+ Collaboration diagram for rtk::XimImageIO:

Classes

struct  xim_header
 

Public Types

using Int4 = itk::int32_t
 
using PixelType = signed short int
 
using Pointer = itk::SmartPointer< Self >
 
using Self = XimImageIO
 
using Superclass = itk::ImageIOBase
 
typedef struct rtk::XimImageIO::xim_header Xim_header
 

Public Member Functions

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

Static Public Member Functions

static Pointer New ()
 

Private Member Functions

template<typename T >
vcl_size_t SetPropertyValue (char *property_name, Int4 value_length, FILE *fp, Xim_header *xim)
 

Private Attributes

Int4 m_BytesPerPixel
 
int m_ImageDataStart
 

Detailed Description

Class for reading Xim Image file format.

Reads Xim files (file format used by Varian for Obi raw data).

Author
Andreas Gravgaard Andersen

Definition at line 45 of file rtkXimImageIO.h.

Member Typedef Documentation

Definition at line 53 of file rtkXimImageIO.h.

using rtk::XimImageIO::PixelType = signed short int

Definition at line 52 of file rtkXimImageIO.h.

Definition at line 51 of file rtkXimImageIO.h.

Standard class type alias.

Definition at line 49 of file rtkXimImageIO.h.

Definition at line 50 of file rtkXimImageIO.h.

Constructor & Destructor Documentation

rtk::XimImageIO::XimImageIO ( )
inline

Definition at line 99 of file rtkXimImageIO.h.

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

Member Function Documentation

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

Implements itk::ImageIOBase.

Referenced by XimImageIO().

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

Implements itk::ImageIOBase.

Referenced by WriteImageInformation().

virtual::itk::LightObject::Pointer rtk::XimImageIO::CreateAnother ( ) const
virtual

Reimplemented from itk::LightProcessObject.

virtual const char* rtk::XimImageIO::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::ImageIOBase.

static Pointer rtk::XimImageIO::New ( )
static

Method for creation through the object factory.

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

Implements itk::ImageIOBase.

Referenced by XimImageIO().

void rtk::XimImageIO::ReadImageInformation ( )
overridevirtual

Implements itk::ImageIOBase.

Referenced by XimImageIO().

template<typename T >
vcl_size_t rtk::XimImageIO::SetPropertyValue ( char *  property_name,
Int4  value_length,
FILE *  fp,
Xim_header xim 
)
private

Referenced by WriteImageInformation().

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

Implements itk::ImageIOBase.

Referenced by WriteImageInformation().

virtual void rtk::XimImageIO::WriteImageInformation ( bool  )
inlinevirtual

Definition at line 115 of file rtkXimImageIO.h.

void rtk::XimImageIO::WriteImageInformation ( )
inlineoverridevirtual

Implements itk::ImageIOBase.

Definition at line 117 of file rtkXimImageIO.h.

References CanWriteFile(), SetPropertyValue(), Write(), and WriteImageInformation().

Referenced by WriteImageInformation().

Member Data Documentation

Int4 rtk::XimImageIO::m_BytesPerPixel
private

Definition at line 127 of file rtkXimImageIO.h.

int rtk::XimImageIO::m_ImageDataStart
private

Definition at line 126 of file rtkXimImageIO.h.


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