#include <SceneContent.h>
Public Member Functions | |
double | getSceneProbability () |
virtual void | initializeInferenceAlgorithms (std::string pAlgorithm)=0 |
virtual void | initializeVisualizer (boost::shared_ptr< Visualization::ProbabilisticSceneVisualization > mSuperior)=0 |
virtual void | load (boost::property_tree::ptree &pPt)=0 |
SceneContent () | |
virtual void | update (std::vector< ISM::Object > pEvidenceList, std::ofstream &pRuntimeLogger)=0 |
virtual | ~SceneContent () |
Protected Member Functions | |
void | doInference (std::vector< ISM::Object > pEvidenceList, std::ofstream &pRuntimeLogger) |
void | loadInferenceAlgorithm (boost::property_tree::ptree &pPt) |
void | setInferenceAlgorithm (boost::shared_ptr< InferenceAlgorithm > pAlgorithm) |
Private Attributes | |
boost::shared_ptr< InferenceAlgorithm > | mAlgorithm |
Abstract class for modelling a specific type of scene (e.g. fore- or background scene).
Definition at line 46 of file SceneContent.h.
ProbabilisticSceneRecognition::SceneContent::SceneContent | ( | ) |
Constructor.
Definition at line 22 of file SceneContent.cpp.
|
virtual |
Destructor.
Definition at line 26 of file SceneContent.cpp.
|
protected |
Executes the inference process.
pEvidenceList | The evidence found. |
pRuntimeLogger | A file handle for runtime logging. |
Definition at line 49 of file SceneContent.cpp.
double ProbabilisticSceneRecognition::SceneContent::getSceneProbability | ( | ) |
Returns the probability for the scene modelled by this class.
Definition at line 30 of file SceneContent.cpp.
|
pure virtual |
Initializes the inference algorithms. The algorithm that should be used is determined by the given string.
pAlgorithm | The name of the inference algorithm that should be used. |
Implemented in ProbabilisticSceneRecognition::ForegroundSceneContent, and ProbabilisticSceneRecognition::BackgroundSceneContent.
|
pure virtual |
Initializes the visualization mechanism.
mSuperior | The superior visualizer coordinating the scene visualizers. |
Implemented in ProbabilisticSceneRecognition::ForegroundSceneContent, and ProbabilisticSceneRecognition::BackgroundSceneContent.
|
pure virtual |
Loads the model from an XML file.
pPt | Data structure for performing XML operations. |
Implemented in ProbabilisticSceneRecognition::ForegroundSceneContent, and ProbabilisticSceneRecognition::BackgroundSceneContent.
|
protected |
Loads the data used by the inference algorithm from an XML file.
pPt | Data structure for performing XML operations. |
Definition at line 40 of file SceneContent.cpp.
|
protected |
Sets the inference algorithm.
pAlgorithm | The algorithm used to infer the scene probability. |
Definition at line 35 of file SceneContent.cpp.
|
pure virtual |
Updates the model with new evidence.
pEvidenceList | A list containing all evidences. |
pRuntimeLogger | A file handle for runtime logging. |
Implemented in ProbabilisticSceneRecognition::ForegroundSceneContent, and ProbabilisticSceneRecognition::BackgroundSceneContent.
|
private |
The algorithm used for inference.
Definition at line 124 of file SceneContent.h.