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

lti::ioImage Class Reference

Base class to functors which load and save images in all formats. More...

#include <ltiALLFunctor.h>

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

List of all members.

Classes

class  parameters
 Parameter class of the ioImage class. More...

Public Types

enum  eImageFileType { , BMP = 0, JPEG, PNG }

Public Member Functions

 ioImage ()
 ~ioImage ()
const parametersgetParameters () const
const ioFunctor::parametersgetCurrParameters () const
virtual bool setParameters (const functor::parameters &theParam)
bool setParameters (const ioBMP::parameters &theParam)
bool setParameters (const ioJPEG::parameters &theParam)
bool setParameters (const ioPNG::parameters &theParam)
virtual const char * getTypeName () const

Protected Member Functions

eImageFileType getExtensionType (const std::string &filename) const
bool setFilenameInParam (const std::string &filename, const eImageFileType &type)

Protected Attributes

eImageFileType type

Detailed Description

Base class to functors which load and save images in all formats.

The parameter class for this functor is lti::ioImage::parameters.

See the derived classes for more information.


Member Enumeration Documentation

Image File Type.

Enumerator:
BMP 

Unknown image file format

JPEG 

MS Bitmap Format

PNG 

JPEG Standard

Portable Network Graphics


Constructor & Destructor Documentation

lti::ioImage::ioImage (  ) 

default constructor

lti::ioImage::~ioImage (  )  [inline]

destructor


Member Function Documentation

const ioFunctor::parameters& lti::ioImage::getCurrParameters (  )  const

returns current parameters.

eImageFileType lti::ioImage::getExtensionType ( const std::string &  filename  )  const [protected]

analyses the extension of filename and returns the index of the filetype

const parameters& lti::ioImage::getParameters (  )  const

returns parameters.

Reimplemented from lti::ioFunctor.

virtual const char* lti::ioImage::getTypeName (  )  const [virtual]

returns the name of this type

Reimplemented from lti::ioFunctor.

Reimplemented in lti::loadImage, and lti::saveImage.

bool lti::ioImage::setFilenameInParam ( const std::string &  filename,
const eImageFileType type 
) [protected]

set the filename in the corresponding(type) parameter

bool lti::ioImage::setParameters ( const ioPNG::parameters theParam  ) 

Shortcut to set the parameters for PNG files only.

bool lti::ioImage::setParameters ( const ioJPEG::parameters theParam  ) 

Shortcut to set the parameters for JPEG files only.

bool lti::ioImage::setParameters ( const ioBMP::parameters theParam  ) 

Shortcut to set the parameters for BMP files only.

virtual bool lti::ioImage::setParameters ( const functor::parameters theParam  )  [virtual]

Set the parameters of this functor.

Reimplemented from lti::functor.


Member Data Documentation

stores the actual extension type


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

Generated on Sat Apr 10 15:27:58 2010 for LTI-Lib by Doxygen 1.6.1