|
latest version v1.9 - last update 10 Apr 2010 |
|
Abstract parent class for all color quantization algorithms All color quantization functors must overload the apply-member defined here. More...
#include <ltiColorQuantization.h>


Classes | |
| class | parameters |
| the parameters for the class colorQuantization More... | |
Public Member Functions | |
| colorQuantization () | |
| colorQuantization (const colorQuantization &other) | |
| virtual | ~colorQuantization () |
| virtual const char * | getTypeName () const |
| virtual bool | apply (const image &src, channel8 &dest, palette &thePalette) const =0 |
| virtual bool | apply (image &srcdest) const |
| virtual bool | apply (const image &src, image &dest) const |
| colorQuantization & | copy (const colorQuantization &other) |
| virtual functor * | clone () const =0 |
| const parameters & | getParameters () const |
Abstract parent class for all color quantization algorithms All color quantization functors must overload the apply-member defined here.
| lti::colorQuantization::colorQuantization | ( | ) |
default constructor
| lti::colorQuantization::colorQuantization | ( | const colorQuantization & | other | ) |
copy constructor
| other | the object to be copied |
| virtual lti::colorQuantization::~colorQuantization | ( | ) | [virtual] |
destructor
operates on the given parameter.
| src | image with the source data. | |
| dest | image with only the number of colors specified in the parameters |
Reimplemented in lti::kMColorQuantization, lti::lkmColorQuantization, and lti::medianCut.
| virtual bool lti::colorQuantization::apply | ( | image & | srcdest | ) | const [virtual] |
operates on the given parameter.
| srcdest | image with the source data. The result will be left here too. |
Reimplemented in lti::kMColorQuantization, lti::lkmColorQuantization, and lti::medianCut.
| virtual bool lti::colorQuantization::apply | ( | const image & | src, | |
| channel8 & | dest, | |||
| palette & | thePalette | |||
| ) | const [pure virtual] |
operates on a copy of the given parameters.
| src | original image with the true-color data | |
| dest | channel8 where the indexes of the also calculated palette will be. | |
| thePalette | the color palette used by the channel. |
Implemented in lti::kMColorQuantization, lti::lkmColorQuantization, and lti::medianCut.
| virtual functor* lti::colorQuantization::clone | ( | ) | const [pure virtual] |
returns a pointer to a clone of this functor.
Implements lti::functor.
Implemented in lti::kMColorQuantization, lti::lkmColorQuantization, and lti::medianCut.
| colorQuantization& lti::colorQuantization::copy | ( | const colorQuantization & | other | ) |
copy data of "other" functor.
| other | the functor to be copied |
Reimplemented from lti::functor.
Reimplemented in lti::kMColorQuantization, lti::lkmColorQuantization, and lti::medianCut.
| const parameters& lti::colorQuantization::getParameters | ( | ) | const |
returns used parameters
Reimplemented from lti::functor.
Reimplemented in lti::kMColorQuantization, lti::lkmColorQuantization, and lti::medianCut.
| virtual const char* lti::colorQuantization::getTypeName | ( | ) | const [virtual] |
returns the name of this type ("colorQuantization")
Reimplemented from lti::functor.
Reimplemented in lti::kMColorQuantization, lti::lkmColorQuantization, and lti::medianCut.