OcclusionTermLearner.cpp
Go to the documentation of this file.
1 
19 
21 
23  : TermLearner()
24  {
25  }
26 
28  {
29  }
30 
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 }
void learn(boost::shared_ptr< OcmModel > pModel)


asr_psm
Author(s): Braun Kai, Gehrung Joachim, Heizmann Heinrich, Meißner Pascal
autogenerated on Fri Nov 15 2019 03:57:54