latest version v1.9 - last update 10 Apr 2010 |
creates a skin probability map. More...
#include <ltiSkinProbabilityMap.h>
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 ¶m) | |
skinProbabilityMap (const skinProbabilityMap &other) | |
virtual | ~skinProbabilityMap () |
virtual const char * | getTypeName () const |
skinProbabilityMap & | copy (const skinProbabilityMap &other) |
virtual functor * | clone () const |
const parameters & | getParameters () const |
Static Public Member Functions | |
static const thistogram< double > & | getSkinHistogram () |
static const thistogram< double > & | getNonSkinHistogram () |
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
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
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
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
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
other | the object to be copied |
virtual lti::skinProbabilityMap::~skinProbabilityMap | ( | ) | [virtual] |
destructor
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.
other | the functor to be copied |
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.