Main Page
Namespaces
Classes
Files
File List
File Members
src
inference
model
background
SummarizedBackgroundInferenceAlgorithm.cpp
Go to the documentation of this file.
1
18
#include "
inference/model/background/SummarizedBackgroundInferenceAlgorithm.h
"
19
20
namespace
ProbabilisticSceneRecognition
{
21
22
SummarizedBackgroundInferenceAlgorithm::SummarizedBackgroundInferenceAlgorithm
()
23
:
BackgroundInferenceAlgorithm
()
24
, mProbability(0.0)
25
{
26
}
27
28
SummarizedBackgroundInferenceAlgorithm::~SummarizedBackgroundInferenceAlgorithm
()
29
{
30
}
31
32
void
SummarizedBackgroundInferenceAlgorithm::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
// The probability is the sum of the scores for every background scene object.
52
mProbability
=
calculateProbabilityOfBackgroundSceneObject
(numberOfSceneObjects, numberOfSceneObjects) * numberOfSceneObjects;
53
54
// TODO Check, if a normalization term should be applied!
55
}
56
57
double
SummarizedBackgroundInferenceAlgorithm::getProbability
()
58
{
59
return
mProbability
;
60
}
61
62
}
ProbabilisticSceneRecognition::SummarizedBackgroundInferenceAlgorithm::getProbability
double getProbability()
Definition:
SummarizedBackgroundInferenceAlgorithm.cpp:57
ProbabilisticSceneRecognition::BackgroundInferenceAlgorithm
Definition:
BackgroundInferenceAlgorithm.h:46
SummarizedBackgroundInferenceAlgorithm.h
ProbabilisticSceneRecognition::SummarizedBackgroundInferenceAlgorithm::doInference
void doInference(std::vector< ISM::Object > pEvidenceList, std::ofstream &pRuntimeLogger)
Definition:
SummarizedBackgroundInferenceAlgorithm.cpp:32
ProbabilisticSceneRecognition
Definition:
MappedProbabilityTable.h:33
ProbabilisticSceneRecognition::BackgroundInferenceAlgorithm::calculateProbabilityOfBackgroundSceneObject
double calculateProbabilityOfBackgroundSceneObject(unsigned int pNumberOfEvidence, unsigned int pNumberOfSlots)
Definition:
BackgroundInferenceAlgorithm.cpp:37
ProbabilisticSceneRecognition::SummarizedBackgroundInferenceAlgorithm::SummarizedBackgroundInferenceAlgorithm
SummarizedBackgroundInferenceAlgorithm()
Definition:
SummarizedBackgroundInferenceAlgorithm.cpp:22
ProbabilisticSceneRecognition::SummarizedBackgroundInferenceAlgorithm::mProbability
double mProbability
Definition:
SummarizedBackgroundInferenceAlgorithm.h:79
ProbabilisticSceneRecognition::SummarizedBackgroundInferenceAlgorithm::~SummarizedBackgroundInferenceAlgorithm
~SummarizedBackgroundInferenceAlgorithm()
Definition:
SummarizedBackgroundInferenceAlgorithm.cpp:28
asr_psm
Author(s): Braun Kai, Gehrung Joachim, Heizmann Heinrich, Meißner Pascal
autogenerated on Fri Nov 15 2019 04:00:08