|
latest version v1.9 - last update 10 Apr 2010 |
|
Base class to functors which load and save images in all formats. More...
#include <ltiALLFunctor.h>


Classes | |
| class | parameters |
| Parameter class of the ioImage class. More... | |
Public Types | |
| enum | eImageFileType { , BMP = 0, JPEG, PNG } |
Public Member Functions | |
| ioImage () | |
| ~ioImage () | |
| const parameters & | getParameters () const |
| const ioFunctor::parameters & | getCurrParameters () 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 |
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.
Image File Type.
| BMP |
Unknown image file format |
| JPEG |
MS Bitmap Format |
| PNG |
JPEG Standard Portable Network Graphics |
| lti::ioImage::ioImage | ( | ) |
default constructor
| lti::ioImage::~ioImage | ( | ) | [inline] |
destructor
| 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.
eImageFileType lti::ioImage::type [protected] |
stores the actual extension type