latest version v1.9 - last update 10 Apr 2010 |
the parameters for the class probabilityMapBase More...
#include <ltiProbabilityMapBase.h>
Public Member Functions | |
parameters () | |
parameters (const parameters &other) | |
~parameters () | |
const char * | getTypeName () const |
parameters & | copy (const parameters &other) |
parameters & | copyAllButHistograms (const parameters &other) |
parameters & | operator= (const parameters &other) |
virtual bool | write (ioHandler &handler, const bool complete=true) const |
virtual bool | read (ioHandler &handler, const bool complete=true) |
void | setObjectColorModel (const thistogram< double > &objModel) |
const thistogram< double > & | getObjectColorModel () const |
virtual bool | isObjectColorModelValid () const =0 |
void | setNonObjectColorModel (const thistogram< double > &nonObjModel) |
const thistogram< double > & | getNonObjectColorModel () const |
virtual bool | isNonObjectColorModelValid () const =0 |
Public Attributes | |
float | objectProbability |
int | iterations |
bool | gaussian |
int | windowSize |
double | variance |
Protected Attributes | |
bool | ownModels |
const thistogram< double > * | nonObjectColorModel |
const thistogram< double > * | objectColorModel |
the parameters for the class probabilityMapBase
lti::probabilityMapBase::parameters::parameters | ( | ) |
default constructor
Reimplemented from lti::transform::parameters.
Reimplemented in lti::probabilityMap::parameters, lti::probabilityMap2D::parameters, and lti::skinProbabilityMap::parameters.
lti::probabilityMapBase::parameters::parameters | ( | const parameters & | other | ) |
copy constructor
other | the parameters object to be copied |
Reimplemented from lti::transform::parameters.
Reimplemented in lti::probabilityMap::parameters, lti::probabilityMap2D::parameters, and lti::skinProbabilityMap::parameters.
lti::probabilityMapBase::parameters::~parameters | ( | ) | [virtual] |
destructor
Reimplemented from lti::functor::parameters.
Reimplemented in lti::probabilityMap::parameters, lti::probabilityMap2D::parameters, and lti::skinProbabilityMap::parameters.
parameters& lti::probabilityMapBase::parameters::copy | ( | const parameters & | other | ) |
copy the contents of a parameters object
other | the parameters object to be copied |
Reimplemented from lti::transform::parameters.
Reimplemented in lti::probabilityMap::parameters, lti::probabilityMap2D::parameters, and lti::skinProbabilityMap::parameters.
parameters& lti::probabilityMapBase::parameters::copyAllButHistograms | ( | const parameters & | other | ) |
copy the contents of a parameters object, except the histograms.
other | the parameters object to be copied |
const thistogram<double>& lti::probabilityMapBase::parameters::getNonObjectColorModel | ( | ) | const |
returns a reference to the non-object color model
const thistogram<double>& lti::probabilityMapBase::parameters::getObjectColorModel | ( | ) | const |
returns a reference to the object color model
const char* lti::probabilityMapBase::parameters::getTypeName | ( | ) | const [virtual] |
returns name of this type
Reimplemented from lti::transform::parameters.
Reimplemented in lti::probabilityMap::parameters, lti::probabilityMap2D::parameters, and lti::skinProbabilityMap::parameters.
virtual bool lti::probabilityMapBase::parameters::isNonObjectColorModelValid | ( | ) | const [pure virtual] |
check if the non-object color model is valid
Valid means that the model has already been set (with setObjectColorModel) and that the dimensionality of the model fits with the dimension which the derived class requires.
Implemented in lti::probabilityMap::parameters, and lti::probabilityMap2D::parameters.
virtual bool lti::probabilityMapBase::parameters::isObjectColorModelValid | ( | ) | const [pure virtual] |
check if the object color model is valid.
Valid means that the model has already been set (with setObjectColorModel) and that the dimensionality of the model fits with the dimension which the derived class requires.
Implemented in lti::probabilityMap::parameters, and lti::probabilityMap2D::parameters.
parameters& lti::probabilityMapBase::parameters::operator= | ( | const parameters & | other | ) |
copy the contents of a parameters object
other | the parameters object to be copied |
Reimplemented in lti::probabilityMap::parameters, lti::probabilityMap2D::parameters, and lti::skinProbabilityMap::parameters.
virtual bool lti::probabilityMapBase::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::functor::parameters.
Reimplemented in lti::skinProbabilityMap::parameters.
void lti::probabilityMapBase::parameters::setNonObjectColorModel | ( | const thistogram< double > & | nonObjModel | ) |
set non-object color model
A copy of the object will be done.
void lti::probabilityMapBase::parameters::setObjectColorModel | ( | const thistogram< double > & | objModel | ) |
virtual bool lti::probabilityMapBase::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::functor::parameters.
Reimplemented in lti::skinProbabilityMap::parameters.
Number of Iterations.
Default value: 1
This member should be always greater than 1. If zero or negative values are given, then 1 will be assumed. At this time, the functor requires BOTH models (object AND non-object) to compute more than one iteration.
The first iteration will always compute the probability map, assuming that for all pixels in the color image the a priori probability for it to be part of the object is given by the objectProbability
.
Each following iteration will compute the a priori for each pixel as some averaging of the probabilities in the neighbourhood of pixel computed in the previous iteration. The available averaging operators are gaussian filters or square filters. The size of the neighbourhood will be specified by the windowSize
attribute.
const thistogram<double>* lti::probabilityMapBase::parameters::nonObjectColorModel [protected] |
internal pointer to non-object color model
const thistogram<double>* lti::probabilityMapBase::parameters::objectColorModel [protected] |
internal pointer to object color model
overall object probability (default is 0.5)
bool lti::probabilityMapBase::parameters::ownModels [protected] |
specify if the histograms are administrated by this class or not.
In case the averaging operator is a gaussian kernel, this is the variance to be used.
Default value: -1 (meaning the lti::gaussKernel1D should compute a default variance)