LTI-Lib latest version v1.9 - last update 10 Apr 2010

lti::colorModelSelector::namedModel Class Reference

Internal data type to facilitate the administration of named color models. More...

#include <ltiColorModelSelector.h>

Collaboration diagram for lti::colorModelSelector::namedModel:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 namedModel ()
bool read (ioHandler &handler, const bool complete=true)
bool write (ioHandler &handler, const bool complete=true) const
namedModelcopy (const namedModel &other)
namedModeloperator= (const namedModel &other)
void setColorMap (const probabilityMap &colMap)
const probabilityMapgetColorMap () const
probabilityMapgetColorMap ()
principalComponents< float > & getPCA ()
bool pcaInitialized () const
bool computePCA ()

Public Attributes

std::string name

Protected Attributes

bool pcaComputed
lti::principalComponents< float > pca
lti::probabilityMap colorMap

Detailed Description

Internal data type to facilitate the administration of named color models.


Constructor & Destructor Documentation

lti::colorModelSelector::namedModel::namedModel (  ) 

default contructor


Member Function Documentation

bool lti::colorModelSelector::namedModel::computePCA (  ) 

compute the pca considering the histogram model given in the colorMap

Returns:
true if successful, false otherwise
namedModel& lti::colorModelSelector::namedModel::copy ( const namedModel other  ) 

copy the contents of a namedModel object

Parameters:
other the namedModel object to be copied
Returns:
a reference to this parameters object
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

Parameters:
other the namedModel object to be copied
Returns:
a reference to this parameters object
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

Parameters:
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.
Returns:
true if write was successful
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

Parameters:
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.
Returns:
true if write was successful

Member Data Documentation

probabilityMap class of the model

a free defineable name for a model

principalComponents class of the model

if true, the pca was already computed from the color model.

if false, it still needs to be computed


The documentation for this class was generated from the following file:

Generated on Sat Apr 10 15:27:09 2010 for LTI-Lib by Doxygen 1.6.1