latest version v1.9 - last update 10 Apr 2010 |
Base class to functors which load and save images in LTI format. More...
#include <ltiLTIFunctor.h>
Classes | |
class | header |
LTI-Format file header. More... | |
class | parameters |
Parameter class of the ioLTI class. More... | |
Public Types | |
enum | eCompressionType { None = 0, RunLength = 1, Flate = 2 } |
Public Member Functions | |
ioLTI () | |
~ioLTI () | |
const parameters & | getParameters () const |
virtual const char * | getTypeName () const |
virtual bool | updateParameters () |
Protected Attributes | |
dataCodec * | codec |
Base class to functors which load and save images in LTI format.
The LTI format is a raw data file, in which only size of the image and the data, without any compression type (yet), are stored.
It is necessary because standard file formats do not provide functionaly to save floating-point or integer (32 bit) channels.
This functor is at a very primitive development stage. The format will change in the future, mainly because at this time, it depends on the implemented platform, i.e. maybe a file stored on Linux won't be readable on Windows and vice-versa. Endianness and floating point number format still need to be formally specified.
It is although provided for those applications which need to store imatrices or channels, for which no other alternative is provided.
The compression methods usable for compressing the data.
You should be aware that runlength compression makes only sense with matrices of bytes. RunLength tries to find runs of equal bytes, which basically never happens in matrices of elements that occupy more than one byte.
lti::ioLTI::ioLTI | ( | ) |
default constructor
lti::ioLTI::~ioLTI | ( | ) |
destructor
const parameters& lti::ioLTI::getParameters | ( | ) | const |
returns current parameters.
Reimplemented from lti::ioFunctor.
virtual const char* lti::ioLTI::getTypeName | ( | ) | const [virtual] |
returns the name of this type
Reimplemented from lti::ioFunctor.
Reimplemented in lti::loadLTI, and lti::saveLTI.
virtual bool lti::ioLTI::updateParameters | ( | ) | [virtual] |
set functor's parameters.
This member makes a copy of theParam: the functor will keep its own copy of the parameters. Furthermore, the method will create the appropriate compression codec from the parameters compression value.
Reimplemented from lti::functor.
dataCodec* lti::ioLTI::codec [protected] |
Pointer to compression functor used.