#include <BackgroundInferenceAlgorithm.h>
Public Member Functions | |
BackgroundInferenceAlgorithm () | |
virtual void | doInference (std::vector< ISM::Object > pEvidenceList, std::ofstream &pRuntimeLogger)=0 |
virtual double | getProbability ()=0 |
void | load (boost::property_tree::ptree &pPt) |
~BackgroundInferenceAlgorithm () | |
Public Member Functions inherited from ProbabilisticSceneRecognition::InferenceAlgorithm | |
InferenceAlgorithm () | |
virtual | ~InferenceAlgorithm () |
Protected Member Functions | |
double | calculateProbabilityOfBackgroundSceneObject (unsigned int pNumberOfEvidence, unsigned int pNumberOfSlots) |
Private Attributes | |
unsigned int | mNumberOfObjectClasses |
double | mVolumeOfWorkspace |
Abstract subclass of the also abstract InferenceAlgorithm class. It provides the calculations for a background scene object. This is basically a foreground scene object which is evaluated under the assumption of equal distribution.
Definition at line 46 of file BackgroundInferenceAlgorithm.h.
ProbabilisticSceneRecognition::BackgroundInferenceAlgorithm::BackgroundInferenceAlgorithm | ( | ) |
Constructor.
Definition at line 22 of file BackgroundInferenceAlgorithm.cpp.
ProbabilisticSceneRecognition::BackgroundInferenceAlgorithm::~BackgroundInferenceAlgorithm | ( | ) |
Destructor.
Definition at line 27 of file BackgroundInferenceAlgorithm.cpp.
|
protected |
Calculates the probability of a single background scene object. There are multiple background scene objects, but they all have the same probability.
pNumberOfEvidence | The number of objects to consider for the background calculation. |
pNumberOfSlots | The total number of slots. |
Definition at line 37 of file BackgroundInferenceAlgorithm.cpp.
|
pure virtual |
Executes the inference based on the given evidence.
pEvidenceList | A list containing all evidences. |
pRuntimeLogger | A file handle for runtime logging. |
Implements ProbabilisticSceneRecognition::InferenceAlgorithm.
Implemented in ProbabilisticSceneRecognition::MaximumBackgroundInferenceAlgorithm, ProbabilisticSceneRecognition::PowerSetBackgroundInferenceAlgorithm, ProbabilisticSceneRecognition::SummarizedBackgroundInferenceAlgorithm, and ProbabilisticSceneRecognition::MultipliedBackgroundInferenceAlgorithm.
|
pure virtual |
Returns the probability calculated by the inference process.
Implements ProbabilisticSceneRecognition::InferenceAlgorithm.
Implemented in ProbabilisticSceneRecognition::MaximumBackgroundInferenceAlgorithm, ProbabilisticSceneRecognition::PowerSetBackgroundInferenceAlgorithm, ProbabilisticSceneRecognition::SummarizedBackgroundInferenceAlgorithm, and ProbabilisticSceneRecognition::MultipliedBackgroundInferenceAlgorithm.
|
virtual |
Loads the model from an XML file.
pPt | Data structure for performing XML operations. |
Implements ProbabilisticSceneRecognition::InferenceAlgorithm.
Definition at line 31 of file BackgroundInferenceAlgorithm.cpp.
|
private |
The number of all possible object instances in the/our world.
Definition at line 98 of file BackgroundInferenceAlgorithm.h.
|
private |
The volume of the space we're operating in.
Definition at line 103 of file BackgroundInferenceAlgorithm.h.