Main Page
Namespaces
Classes
Files
File List
File Members
src
learner
foreground
ocm
ocm
occlusion
OcclusionTermLearner.cpp
Go to the documentation of this file.
1
18
#include "
learner/foreground/ocm/ocm/occlusion/OcclusionTermLearner.h
"
19
20
namespace
ProbabilisticSceneRecognition
{
21
22
OcclusionTermLearner::OcclusionTermLearner
()
23
:
TermLearner
()
24
{
25
}
26
27
OcclusionTermLearner::~OcclusionTermLearner
()
28
{
29
}
30
31
void
OcclusionTermLearner::learn
(
boost::shared_ptr<OcmModel>
pModel)
32
{
33
// Get the number of slots in the model.
34
unsigned
int
numberOfSlots = pModel->getNumberOfSlots();
35
36
// Create the occlusion table.
37
pModel->mOcclusionTable.reset(
new
ProbabilityTable
(numberOfSlots, 2));
38
39
// The objects may be there or not. We can't extract this information from the data at this point
40
// (no tracking available), so we set it to always there.
41
for
(
unsigned
int
i = 0; i < numberOfSlots; i++)
42
{
43
//pModel->mOcclusionTable->add(i, 0, 1); // Nicht da
44
pModel->mOcclusionTable->add(i, 1, 1);
// Da
45
}
46
47
// Normalize the probability table. Not necessary here, but just to be sure in case of changes...
48
pModel->mOcclusionTable->normalize();
49
}
50
51
}
ProbabilisticSceneRecognition::OcclusionTermLearner::OcclusionTermLearner
OcclusionTermLearner()
Definition:
OcclusionTermLearner.cpp:22
ProbabilisticSceneRecognition::OcclusionTermLearner::learn
void learn(boost::shared_ptr< OcmModel > pModel)
Definition:
OcclusionTermLearner.cpp:31
boost::shared_ptr
ProbabilisticSceneRecognition::ProbabilityTable
Definition:
ProbabilityTable.h:38
ProbabilisticSceneRecognition
Definition:
MappedProbabilityTable.h:33
OcclusionTermLearner.h
ProbabilisticSceneRecognition::TermLearner
Definition:
TermLearner.h:34
ProbabilisticSceneRecognition::OcclusionTermLearner::~OcclusionTermLearner
~OcclusionTermLearner()
Definition:
OcclusionTermLearner.cpp:27
asr_psm
Author(s): Braun Kai, Gehrung Joachim, Heizmann Heinrich, Meißner Pascal
autogenerated on Fri Nov 15 2019 03:57:54