latest version v1.9 - last update 10 Apr 2010 |
the parameters for the class lkmColorQuantization More...
#include <ltiLkmColorQuantization.h>
Public Member Functions | |
parameters () | |
parameters (const parameters &other) | |
~parameters () | |
const char * | getTypeName () const |
parameters & | copy (const parameters &other) |
parameters & | operator= (const parameters &other) |
virtual functor::parameters * | clone () const |
virtual bool | write (ioHandler &handler, const bool complete=true) const |
virtual bool | read (ioHandler &handler, const bool complete=true) |
Public Attributes | |
double | neighbour |
double | learnRate |
double | shrinkLearnRate |
int | maxIterations |
the parameters for the class lkmColorQuantization
lti::lkmColorQuantization::parameters::parameters | ( | ) |
default constructor
Reimplemented from lti::colorQuantization::parameters.
lti::lkmColorQuantization::parameters::parameters | ( | const parameters & | other | ) |
copy constructor
other | the parameters object to be copied |
Reimplemented from lti::colorQuantization::parameters.
lti::lkmColorQuantization::parameters::~parameters | ( | ) | [virtual] |
destructor
Reimplemented from lti::colorQuantization::parameters.
virtual functor::parameters* lti::lkmColorQuantization::parameters::clone | ( | ) | const [virtual] |
returns a pointer to a clone of the parameters
Reimplemented from lti::colorQuantization::parameters.
parameters& lti::lkmColorQuantization::parameters::copy | ( | const parameters & | other | ) |
copy the contents of a parameters object
other | the parameters object to be copied |
Reimplemented from lti::colorQuantization::parameters.
const char* lti::lkmColorQuantization::parameters::getTypeName | ( | ) | const [virtual] |
returns name of this type
Reimplemented from lti::colorQuantization::parameters.
parameters& lti::lkmColorQuantization::parameters::operator= | ( | const parameters & | other | ) |
copy the contents of a parameters object
other | the parameters object to be copied |
Reimplemented from lti::colorQuantization::parameters.
virtual bool lti::lkmColorQuantization::parameters::read | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | [virtual] |
write the parameters in the given ioHandler
handler | the ioHandler to be used | |
complete | if true (the default) the enclosing begin/end will be also written, otherwise only the data block will be written. |
Reimplemented from lti::colorQuantization::parameters.
virtual bool lti::lkmColorQuantization::parameters::write | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | const [virtual] |
write the parameters in the given ioHandler
handler | the ioHandler to be used | |
complete | if true (the default) the enclosing begin/end will be also written, otherwise only the data block will be written. |
Reimplemented from lti::colorQuantization::parameters.
this parameter is the startvalue for the weight of a new pixel.
Default value: 0.6
this parameter sets the upper limit for the iterations, if the algorithm hasn't convergated yet Default value: 10
This parameter defines how strong is the influence of an changing paletteIndex towards the neighbour paletteIndex is.
Default value: 0.1
This parameter is the factor, the learnRate will be multiplicated with in every iteration It defines how fast the learnRate convergates to zero Default value: 0.5.