LTI-Lib latest version v1.9 - last update 10 Apr 2010

lti::ioLTI Class Reference

Base class to functors which load and save images in LTI format. More...

#include <ltiLTIFunctor.h>

Inheritance diagram for lti::ioLTI:
Inheritance graph
[legend]
Collaboration diagram for lti::ioLTI:
Collaboration graph
[legend]

List of all members.

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 parametersgetParameters () const
virtual const char * getTypeName () const
virtual bool updateParameters ()

Protected Attributes

dataCodeccodec

Detailed Description

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.

See also:
lti::ioLTI::parameters
lti::ioLTI::header

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.


Member Enumeration Documentation

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.

Enumerator:
None 

use no compression

RunLength 

uses runlength compression

Flate 

uses zLib deflate compression


Constructor & Destructor Documentation

lti::ioLTI::ioLTI (  ) 

default constructor

lti::ioLTI::~ioLTI (  ) 

destructor


Member Function Documentation

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.

Returns:
true if successful, false otherwise

Reimplemented from lti::functor.


Member Data Documentation

Pointer to compression functor used.


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

Generated on Sat Apr 10 15:28:05 2010 for LTI-Lib by Doxygen 1.6.1