|
latest version v1.9 - last update 10 Apr 2010 |
|
This class does color quantization with median-cut-algorithm (Heckbert, MIT 1980). More...
#include <ltiMedianCut.h>


Classes | |
| class | parameters |
| the parameters for the class medianCut More... | |
Public Member Functions | |
| medianCut () | |
| medianCut (const medianCut &other) | |
| virtual | ~medianCut () |
| virtual const char * | getTypeName () const |
| bool | apply (const image &src, channel8 &dest) const |
| bool | apply (const image &src, channel8 &dest, palette &thePalette) const |
| bool | apply (image &srcdest) const |
| bool | apply (const image &src, image &dest) const |
| bool | apply (const image &src, image &dest, palette &thePalette) const |
| medianCut & | copy (const medianCut &other) |
| virtual functor * | clone () const |
| const parameters & | getParameters () const |
This class does color quantization with median-cut-algorithm (Heckbert, MIT 1980).
Description of the algorithm: http://www-lehre.informatik.uni-osnabrueck.de/~cg/2000/skript/10_7_Erzeugung_einer.html
| lti::medianCut::medianCut | ( | ) |
default constructor
| lti::medianCut::medianCut | ( | const medianCut & | other | ) |
copy constructor
| other | the object to be copied |
| virtual lti::medianCut::~medianCut | ( | ) | [virtual] |
destructor
This apply method calculates a quantized image (on copy).
Reimplemented from lti::colorQuantization.
| bool lti::medianCut::apply | ( | image & | srcdest | ) | const [virtual] |
This apply method calculates a quantized image (on place).
| srcdest | image with the source data. The result will be left here too. |
Reimplemented from lti::colorQuantization.
| bool lti::medianCut::apply | ( | const image & | src, | |
| channel8 & | dest, | |||
| palette & | thePalette | |||
| ) | const [virtual] |
This apply method calculates a channel8, containing the indices of the quantized colors AND the palette.
Will deliver empty channel8, if more than 256 colors!! But palette will be O.K.
| src | image with the source data. | |
| dest | channel8 where the result will be left. | |
| thePalette | palette appendant to dest. |
Implements lti::colorQuantization.
| virtual functor* lti::medianCut::clone | ( | ) | const [virtual] |
returns a pointer to a clone of this functor.
Implements lti::colorQuantization.
copy data of "other" functor.
| other | the functor to be copied |
Reimplemented from lti::colorQuantization.
| const parameters& lti::medianCut::getParameters | ( | ) | const |
returns used parameters
Reimplemented from lti::colorQuantization.
| virtual const char* lti::medianCut::getTypeName | ( | ) | const [virtual] |
returns the name of this type ("medianCut")
Reimplemented from lti::colorQuantization.