|
latest version v1.9 - last update 24 Nov 2005 |
|
#include <ltiIOFunctor.h>
Inheritance diagram for lti::ioFunctor:


Public Member Functions | |
| ioFunctor () | |
| ioFunctor (const parameters &theParam) | |
| ioFunctor (const std::string &theFilename) | |
| virtual | ~ioFunctor () |
| const parameters & | getParameters () const |
| virtual bool | apply (image &theImage) |
| virtual bool | apply (channel8 &theChannel, lti::palette &colors) |
| virtual int | apply (image &theImage, channel8 &theChannel, lti::palette &colors) |
| virtual bool | apply (const image &theImage) |
| virtual bool | apply (const channel &theChannel) |
| virtual bool | apply (const channel8 &theChannel, const lti::palette &colors=emptyPalette) |
| virtual bool | save (const std::string &filename, const image &theImage) |
| virtual bool | save (const std::string &filename, const channel8 &theChannel, const lti::palette &colors=emptyPalette) |
| virtual bool | load (const std::string &filename, image &theImage) |
| virtual bool | load (const std::string &filename, channel8 &theChannel, lti::palette &colors) |
| virtual const char * | getTypeName () const |
Classes | |
| class | parameters |
| ioFunctor parameters class More... | |
All functors to load and save images are considered io functors.
This is an abstract class and therefore no instances of this class should exist!
|
|
default constructor
|
|
|
constructor, sets the parameters
|
|
|
constructor, sets the filename
|
|
|
destructor
|
|
||||||||||||
|
save 8-bit channel with the given color palette.
Reimplemented in lti::saveImage, lti::saveBMP, and lti::savePNG. |
|
|
save float channel
Reimplemented in lti::saveImage, lti::saveBMP, lti::saveJPEG, and lti::savePNG. |
|
|
save image. The file name is specified in the parameters.
Reimplemented in lti::saveImage, lti::saveBMP, lti::saveJPEG, and lti::savePNG. |
|
||||||||||||||||
|
this method loads an image or a channel8, depending on the contents of the file header. if the number of bits per pixel is 24, the image will be initialized, if the number of bits is less or equal 8, the channel and palette will be initialized. If the file contains an indexed image, the palette will contain the corresponding colors. If the file contains a "true color" image, the palette will have size 0.
Reimplemented in lti::loadBMP. |
|
||||||||||||
|
load Channel Use this method if you know that the file contains a gray valued image.
Reimplemented in lti::loadImage, lti::loadBMP, lti::loadImageList, and lti::loadPNG. |
|
|
load Image
Reimplemented in lti::loadImage, lti::loadBMP, lti::loadJPEG, lti::loadImageList, and lti::loadPNG. |
|
|
returns current parameters.
Reimplemented from lti::functor. Reimplemented in lti::ioImage, lti::ioBMP, lti::configFileHandler, lti::ioJPEG, lti::lncFeatureFile, lti::saveLnc, lti::loadImageList, lti::loadVectorImageList, lti::ioLTI, lti::ioPNG, lti::uciDataReader, and lti::uciDataWriter. |
|
|
returns the name of this type
Reimplemented from lti::functor. Reimplemented in lti::ioImage, lti::loadImage, lti::saveImage, lti::ioBMP, lti::loadBMP, lti::saveBMP, lti::configFileHandler, lti::ioJPEG, lti::loadJPEG, lti::saveJPEG, lti::loadImageList, lti::loadVectorImageList, lti::ioLTI, lti::loadLTI, lti::saveLTI, lti::ioPNG, lti::loadPNG, lti::savePNG, lti::uciDataReader, and lti::uciDataWriter. |
|
||||||||||||||||
|
shortcut for load image. Use this method if you know that the file contains a gray valued image.
Reimplemented in lti::loadImage, lti::loadBMP, and lti::loadPNG. |
|
||||||||||||
|
shortcut for load image
Reimplemented in lti::loadImage, lti::loadBMP, lti::loadJPEG, and lti::loadPNG. |
|
||||||||||||||||
|
this will save a channel8
Reimplemented in lti::saveImage, lti::saveBMP, and lti::savePNG. |
|
||||||||||||
|
this will save an image as a 24 bit RGB image
Reimplemented in lti::saveImage, lti::saveBMP, lti::saveJPEG, and lti::savePNG. |