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

lti::skinProbabilityMap Class Reference

creates a skin probability map. More...

#include <ltiSkinProbabilityMap.h>

Inheritance diagram for lti::skinProbabilityMap:
Inheritance graph
[legend]
Collaboration diagram for lti::skinProbabilityMap:
Collaboration graph
[legend]

List of all members.

Classes

class  parameters
 the parameters for the class skinProbabilityMap. More...

Public Member Functions

 skinProbabilityMap (const bool &useDefaultParams=true)
 skinProbabilityMap (const std::string path)
 skinProbabilityMap (const char *path)
 skinProbabilityMap (const parameters &param)
 skinProbabilityMap (const skinProbabilityMap &other)
virtual ~skinProbabilityMap ()
virtual const char * getTypeName () const
skinProbabilityMapcopy (const skinProbabilityMap &other)
virtual functorclone () const
const parametersgetParameters () const

Static Public Member Functions

static const thistogram< double > & getSkinHistogram ()
static const thistogram< double > & getNonSkinHistogram ()

Detailed Description

creates a skin probability map.

the histograms were generated from 3077 pictures containing masked skin regions and 6286 pictures not containing skin, which were taken from the compaq cambridge research lab image-database. Please cite M. Jones, J. Rehg. Statistical Color Models with Application to Skin Color Detection. Compaq Cambridge Research Lab Technical Report CRL 98/11, 1998. when using in a publication.

the color models are located in "skin-32-32-32.hist" and "nonskin-32-32-32.hist", saved in lisp format and must reside in the current directory, or the path must be specified in the constructor.

This class just keeps the two color models (for skin and non-skin) and is responsible to load the on time. All computations are taken by the parent class lti::probabilityMap


Constructor & Destructor Documentation

lti::skinProbabilityMap::skinProbabilityMap ( const bool &  useDefaultParams = true  ) 

default constructor This constructor will initialize the functor with the default parameters.

If you require to set the parameters later, you can give in the boolean useDefaultParams the value "false". This way the histograms will be loaded when you set the parameters.

lti::skinProbabilityMap::skinProbabilityMap ( const std::string  path  ) 

constructor with path

Parameters:
path this parameter specify the path where the skin histogram files can be found, and loads them.
lti::skinProbabilityMap::skinProbabilityMap ( const char *  path  ) 

constructor with path

Parameters:
path this parameter specify the path where the skin histogram files can be found, and loads them.
lti::skinProbabilityMap::skinProbabilityMap ( const parameters param  ) 

default constructor

Parameters:
param The parameters contain the path where the skin histogram file can be found, which will be loaded here. If you need to wait with the histograms initialization until the user specifies a path setting the parameters, you should use the default constructor.
lti::skinProbabilityMap::skinProbabilityMap ( const skinProbabilityMap other  ) 

copy constructor

Parameters:
other the object to be copied
virtual lti::skinProbabilityMap::~skinProbabilityMap (  )  [virtual]

destructor


Member Function Documentation

virtual functor* lti::skinProbabilityMap::clone (  )  const [virtual]

returns a pointer to a clone of this functor.

Reimplemented from lti::probabilityMap.

skinProbabilityMap& lti::skinProbabilityMap::copy ( const skinProbabilityMap other  ) 

copy data of "other" functor.

Parameters:
other the functor to be copied
Returns:
a reference to this functor object

Reimplemented from lti::probabilityMap.

static const thistogram<double>& lti::skinProbabilityMap::getNonSkinHistogram (  )  [static]

get a const reference to the non-skin color model

const parameters& lti::skinProbabilityMap::getParameters (  )  const

returns used parameters

Reimplemented from lti::probabilityMap.

static const thistogram<double>& lti::skinProbabilityMap::getSkinHistogram (  )  [static]

get a const reference to the skin color model

virtual const char* lti::skinProbabilityMap::getTypeName (  )  const [virtual]

returns the name of this type ("skinProbabilityMap")

Reimplemented from lti::probabilityMap.


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

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