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

#include <PNGImageWriter.h>

Inheritance diagram for mirtk::PNGImageWriter:
Inheritance graph
Collaboration diagram for mirtk::PNGImageWriter:
Collaboration graph

Public Member Functions

virtual void Run ()
 Write entire image.
 
- 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 Initialize ()
 Initialize filter.
 
- Protected Member Functions inherited from mirtk::ImageWriter
virtual void Finalize ()
 Finalize filter.
 
 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 PNG file filter.

This is a class which takes an image as input and produces an image file in PNG file format. Note that PNG file formats support only 2D images!!!

Definition at line 37 of file PNGImageWriter.h.


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