Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
mirtk::NiftiImageWriter Class Reference

#include <NiftiImageWriter.h>

Inheritance diagram for mirtk::NiftiImageWriter:
Inheritance graph
Collaboration diagram for mirtk::NiftiImageWriter:
Collaboration graph

Public Member Functions

 NiftiImageWriter ()
 Constructor.
 
virtual void Run ()
 Write image.
 
virtual ~NiftiImageWriter ()
 Destructor.
 
- Public Member Functions inherited from mirtk::ImageWriter
virtual ~ImageWriter ()
 Destructor.
 

Static Public Member Functions

static Array< string > Extensions ()
 List of file name extensions.
 
- Static Public Member Functions inherited from mirtk::ImageWriter
static ImageWriterNew (const char *)
 

Protected Member Functions

virtual void Finalize ()
 Close file.
 
virtual void Initialize ()
 Open file and write header.
 
- Protected Member Functions inherited from mirtk::ImageWriter
 ImageWriter ()
 Constructor.
 
- Protected Member Functions inherited from mirtk::Cofstream
void Close ()
 Close file.
 
 Cofstream (const char *=NULL)
 Constructor.
 
MIRTK_Common_DEPRECATED int IsCompressed () const
 
MIRTK_Common_DEPRECATED void IsCompressed (int)
 
MIRTK_Common_DEPRECATED int IsSwapped () const
 
MIRTK_Common_DEPRECATED void IsSwapped (int)
 
void Open (const char *)
 Open file.
 
bool Write (const char *, long, long)
 Write n data as array from offset.
 
bool WriteAsChar (char, long=-1)
 Write data as char (possibly compressed) from offset.
 
bool WriteAsChar (const char *, long, long=-1)
 Write data as char (possibly compressed) from offset.
 
bool WriteAsDouble (double, long=-1)
 Write data as double (possibly compressed) from offset.
 
bool WriteAsDouble (const double *, long, long=-1)
 Write data as double (possibly compressed) from offset.
 
bool WriteAsFloat (float, long=-1)
 Write data as float (possibly compressed) from offset.
 
bool WriteAsFloat (const float *, long, long=-1)
 Write data as float (possibly compressed) from offset.
 
bool WriteAsInt (int, long=-1)
 Write data as int (possibly compressed) from offset.
 
bool WriteAsInt (const int *, long, long=-1)
 Write data as int (possibly compressed) from offset.
 
bool WriteAsShort (short, long=-1)
 Write data as short (possibly compressed) from offset.
 
bool WriteAsShort (const short *, long, long=-1)
 Write data as short (possibly compressed) from offset.
 
bool WriteAsString (const char *, long=-1)
 Write data as string (possibly compressed)
 
bool WriteAsUChar (unsigned char, long=-1)
 Write data as unsigned char (possibly compressed) from offset.
 
bool WriteAsUChar (const unsigned char *, long, long=-1)
 Write data as unsigned char (possibly compressed) from offset.
 
bool WriteAsUInt (unsigned int, long=-1)
 Write data as unsigned int (possibly compressed) from offset.
 
bool WriteAsUInt (const unsigned int *, long, long=-1)
 Write data as unsigned int (possibly compressed) from offset.
 
bool WriteAsUShort (unsigned short, long=-1)
 Write data as unsigned short (possibly compressed) from offset.
 
bool WriteAsUShort (const unsigned short *, long, long=-1)
 Write data as unsigned short (possibly compressed) from offset.
 
 ~Cofstream ()
 Destructor.
 
- Protected Member Functions inherited from mirtk::Object
template<typename... Args>
void Throw (ErrorType err, const char *func, Args... args) const
 
virtual const char * NameOfClass () const =0
 Get name of class, which this object is an instance of.
 
virtual ParameterList Parameter () const
 Get parameter name/value pairs.
 
bool Parameter (const ParameterList &)
 Set parameters from name/value pairs.
 
virtual bool Set (const char *name, const char *value)
 
virtual ~Object ()
 Destructor.
 

Additional Inherited Members

- Static Protected Member Functions inherited from mirtk::Object
template<typename... Args>
static void ThrowStatic (ErrorType err, const char *cls, const char *func, Args... args)
 
static const char * NameOfType ()
 Get name of this class type.
 
- Protected Attributes inherited from mirtk::ImageWriter
int _ReflectX
 Flag whether to reflect X axis.
 
int _ReflectY
 Flag whether to reflect Y axis.
 
int _ReflectZ
 Flag whether to reflect Z axis.
 
int _Start
 

Detailed Description

Class for image to NIFTI file writer.

This is a class which takes an image as input and produces an image file in NIFTI file format.

Definition at line 43 of file NiftiImageWriter.h.


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