#include <SceneModelDescription.h>
Public Member Functions | |
void | getSceneListWithProbabilities (std::vector< SceneIdentifier > &pSceneList) |
void | initializeVisualizer (boost::shared_ptr< Visualization::ProbabilisticSceneModelVisualization > mSuperior) |
void | integrateEvidence (const boost::shared_ptr< const ISM::Object > &pObject) |
void | loadModelFromFile (std::string pPathToFile, std::string pAlgorithm) |
SceneModelDescription () | |
void | updateModel () |
~SceneModelDescription () | |
Private Attributes | |
std::vector< ISM::Object > | mEvidenceList |
ObjectEvidence | mObjectEvidence |
std::vector< boost::shared_ptr< SceneDescription > > | mScenes |
Model for probabilistic scene recognition.
Definition at line 52 of file SceneModelDescription.h.
ProbabilisticSceneRecognition::SceneModelDescription::SceneModelDescription | ( | ) |
Constructor.
Definition at line 22 of file SceneModelDescription.cpp.
ProbabilisticSceneRecognition::SceneModelDescription::~SceneModelDescription | ( | ) |
Destructor.
Definition at line 26 of file SceneModelDescription.cpp.
void ProbabilisticSceneRecognition::SceneModelDescription::getSceneListWithProbabilities | ( | std::vector< SceneIdentifier > & | pSceneList | ) |
Returns a list of all scenes containing their name and probability.
pSceneList | The scene list including names and probabilities of all scenes. |
Definition at line 88 of file SceneModelDescription.cpp.
void ProbabilisticSceneRecognition::SceneModelDescription::initializeVisualizer | ( | boost::shared_ptr< Visualization::ProbabilisticSceneModelVisualization > | mSuperior | ) |
Initializes the visualization mechanism.
mSuperior | The superior visualizer coordinating the scene visualizers. |
Definition at line 57 of file SceneModelDescription.cpp.
void ProbabilisticSceneRecognition::SceneModelDescription::integrateEvidence | ( | const boost::shared_ptr< const ISM::Object > & | pObject | ) |
Integrated evidence abound objects found by the detection systems into the model. Evidences are accumulated until an update is requested.
pObject | AsrObject message containing data about the evidence. |
Definition at line 64 of file SceneModelDescription.cpp.
void ProbabilisticSceneRecognition::SceneModelDescription::loadModelFromFile | ( | std::string | pPathToFile, |
std::string | pAlgorithm | ||
) |
Loads the model from an XML file.
pPathToFile | Path to the XML file that contains the modelin serialized form. |
pAlgorithm | The name of the inference algorithm that should be used. |
Definition at line 30 of file SceneModelDescription.cpp.
void ProbabilisticSceneRecognition::SceneModelDescription::updateModel | ( | ) |
Update the model based on the accumulated evidence.
Definition at line 71 of file SceneModelDescription.cpp.
|
private |
Used for forwarding the evidences. Put this here so we don't need to build a new one every time we got new evidence.
Definition at line 111 of file SceneModelDescription.h.
|
private |
An intelligent container for the object evidences. It states whether a given evidence is an update of an already known object or a new one.
Definition at line 105 of file SceneModelDescription.h.
|
private |
A list containing the background and foreground elements.
Definition at line 116 of file SceneModelDescription.h.