Main Page
Namespaces
Classes
Files
File List
File Members
src
inference
model
background
MaximumBackgroundInferenceAlgorithm.cpp
Go to the documentation of this file.
1
18
#include "
inference/model/background/MaximumBackgroundInferenceAlgorithm.h
"
19
20
namespace
ProbabilisticSceneRecognition
{
21
22
MaximumBackgroundInferenceAlgorithm::MaximumBackgroundInferenceAlgorithm
()
23
:
BackgroundInferenceAlgorithm
()
24
, mProbability(0.0)
25
{
26
}
27
28
MaximumBackgroundInferenceAlgorithm::~MaximumBackgroundInferenceAlgorithm
()
29
{
30
}
31
32
void
MaximumBackgroundInferenceAlgorithm::doInference
(std::vector<ISM::Object> pEvidenceList, std::ofstream& pRuntimeLogger)
33
{
34
/**************************************************************************************
35
* What we do here:
36
*
37
* This are basically the same calculations like in the foreground scene. We calculate
38
* the probability of the scene based on the scene objects, exactly like in the
39
* foreground scene.
40
*
41
* However, the probability of the scene objects are calculated under an
42
* equal distribution. We assume that there's a scene object for every detected object.
43
*
44
* The scene objects are evaluated and the results are summarized to form
45
* the scene probabilty.
46
***************************************************************************************/
47
48
// The number of scene objects equals the number of evidences.
49
unsigned
int
numberOfSceneObjects = pEvidenceList.size();
50
51
// No need to find the maximum, all scores are the same.
52
mProbability
=
calculateProbabilityOfBackgroundSceneObject
(numberOfSceneObjects, numberOfSceneObjects);
53
}
54
55
double
MaximumBackgroundInferenceAlgorithm::getProbability
()
56
{
57
return
mProbability
;
58
}
59
60
}
ProbabilisticSceneRecognition::BackgroundInferenceAlgorithm
Definition:
BackgroundInferenceAlgorithm.h:46
ProbabilisticSceneRecognition::MaximumBackgroundInferenceAlgorithm::mProbability
double mProbability
Definition:
MaximumBackgroundInferenceAlgorithm.h:79
MaximumBackgroundInferenceAlgorithm.h
ProbabilisticSceneRecognition::MaximumBackgroundInferenceAlgorithm::getProbability
double getProbability()
Definition:
MaximumBackgroundInferenceAlgorithm.cpp:55
ProbabilisticSceneRecognition::MaximumBackgroundInferenceAlgorithm::~MaximumBackgroundInferenceAlgorithm
~MaximumBackgroundInferenceAlgorithm()
Definition:
MaximumBackgroundInferenceAlgorithm.cpp:28
ProbabilisticSceneRecognition
Definition:
MappedProbabilityTable.h:33
ProbabilisticSceneRecognition::MaximumBackgroundInferenceAlgorithm::MaximumBackgroundInferenceAlgorithm
MaximumBackgroundInferenceAlgorithm()
Definition:
MaximumBackgroundInferenceAlgorithm.cpp:22
ProbabilisticSceneRecognition::MaximumBackgroundInferenceAlgorithm::doInference
void doInference(std::vector< ISM::Object > pEvidenceList, std::ofstream &pRuntimeLogger)
Definition:
MaximumBackgroundInferenceAlgorithm.cpp:32
ProbabilisticSceneRecognition::BackgroundInferenceAlgorithm::calculateProbabilityOfBackgroundSceneObject
double calculateProbabilityOfBackgroundSceneObject(unsigned int pNumberOfEvidence, unsigned int pNumberOfSlots)
Definition:
BackgroundInferenceAlgorithm.cpp:37
asr_psm
Author(s): Braun Kai, Gehrung Joachim, Heizmann Heinrich, Meißner Pascal
autogenerated on Fri Nov 15 2019 03:57:54