latest version v1.9 - last update 10 Apr 2010 |
Internal data type to facilitate the administration of named color models. More...
#include <ltiColorModelSelector.h>
Public Member Functions | |
namedModel () | |
bool | read (ioHandler &handler, const bool complete=true) |
bool | write (ioHandler &handler, const bool complete=true) const |
namedModel & | copy (const namedModel &other) |
namedModel & | operator= (const namedModel &other) |
void | setColorMap (const probabilityMap &colMap) |
const probabilityMap & | getColorMap () const |
probabilityMap & | getColorMap () |
principalComponents< float > & | getPCA () |
bool | pcaInitialized () const |
bool | computePCA () |
Public Attributes | |
std::string | name |
Protected Attributes | |
bool | pcaComputed |
lti::principalComponents< float > | pca |
lti::probabilityMap | colorMap |
Internal data type to facilitate the administration of named color models.
lti::colorModelSelector::namedModel::namedModel | ( | ) |
default contructor
bool lti::colorModelSelector::namedModel::computePCA | ( | ) |
compute the pca considering the histogram model given in the colorMap
namedModel& lti::colorModelSelector::namedModel::copy | ( | const namedModel & | other | ) |
copy the contents of a namedModel object
other | the namedModel object to be copied |
probabilityMap& lti::colorModelSelector::namedModel::getColorMap | ( | ) |
get color map being used
const probabilityMap& lti::colorModelSelector::namedModel::getColorMap | ( | ) | const |
get color map being used
principalComponents<float>& lti::colorModelSelector::namedModel::getPCA | ( | ) |
get color map being used
namedModel& lti::colorModelSelector::namedModel::operator= | ( | const namedModel & | other | ) |
copy the contents of a namedModel object
other | the namedModel object to be copied |
bool lti::colorModelSelector::namedModel::pcaInitialized | ( | ) | const |
returns true if the pca was already initialized
bool lti::colorModelSelector::namedModel::read | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) |
read the namedModel from 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. |
void lti::colorModelSelector::namedModel::setColorMap | ( | const probabilityMap & | colMap | ) |
set the color map to be used.
The pca will be marked as uninitialized
bool lti::colorModelSelector::namedModel::write | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | const |
write the namedModel 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. |
probabilityMap class of the model
std::string lti::colorModelSelector::namedModel::name |
a free defineable name for a model
lti::principalComponents<float> lti::colorModelSelector::namedModel::pca [protected] |
principalComponents class of the model
bool lti::colorModelSelector::namedModel::pcaComputed [protected] |
if true, the pca was already computed from the color model.
if false, it still needs to be computed