#include <SceneDescription.h>
Public Member Functions | |
void | calculateSceneProbaility () |
boost::shared_ptr< SceneIdentifier > | getSceneIdentifier () |
void | initializeVisualizer (boost::shared_ptr< Visualization::ProbabilisticSceneModelVisualization > mSuperior) |
void | load (boost::property_tree::ptree &pPt, std::string pAlgorithm) |
SceneDescription () | |
void | setSceneIdentifier (boost::shared_ptr< SceneIdentifier > pIdentifier) |
void | update (std::vector< ISM::Object > pEvidenceList) |
~SceneDescription () | |
Private Attributes | |
boost::shared_ptr< SceneContent > | mContent |
boost::shared_ptr< SceneIdentifier > | mIdentifier |
std::ofstream | mRuntimeFile |
boost::shared_ptr< Visualization::ProbabilisticSceneVisualization > | mVisualizer |
This class describes a scene. It's a wrapper for the for the scene content which contains the concrete realization of the scene.
Definition at line 53 of file SceneDescription.h.
ProbabilisticSceneRecognition::SceneDescription::SceneDescription | ( | ) |
Constructor.
Definition at line 22 of file SceneDescription.cpp.
ProbabilisticSceneRecognition::SceneDescription::~SceneDescription | ( | ) |
Destructor.
Definition at line 27 of file SceneDescription.cpp.
void ProbabilisticSceneRecognition::SceneDescription::calculateSceneProbaility | ( | ) |
Calculates the probability of the scene.
Definition at line 107 of file SceneDescription.cpp.
boost::shared_ptr< SceneIdentifier > ProbabilisticSceneRecognition::SceneDescription::getSceneIdentifier | ( | ) |
Returns the scene's metadata.
Definition at line 121 of file SceneDescription.cpp.
void ProbabilisticSceneRecognition::SceneDescription::initializeVisualizer | ( | boost::shared_ptr< Visualization::ProbabilisticSceneModelVisualization > | mSuperior | ) |
Initializes the visualization mechanism.
mSuperior | The superior visualizer coordinating the scene visualizers. |
Definition at line 80 of file SceneDescription.cpp.
void ProbabilisticSceneRecognition::SceneDescription::load | ( | boost::property_tree::ptree & | pPt, |
std::string | pAlgorithm | ||
) |
Loads the model from an XML file.
pPt | Data structure for performing XML operations. |
pAlgorithm | The name of the inference algorithm. |
Definition at line 34 of file SceneDescription.cpp.
void ProbabilisticSceneRecognition::SceneDescription::setSceneIdentifier | ( | boost::shared_ptr< SceneIdentifier > | pIdentifier | ) |
Sets the scene content of this scene.
pIdentifier | The identifier holding the scenes metadata. |
Definition at line 126 of file SceneDescription.cpp.
void ProbabilisticSceneRecognition::SceneDescription::update | ( | std::vector< ISM::Object > | pEvidenceList | ) |
Updates the model with new evidence.
pEvidenceList | A list containing all evidences. |
Definition at line 96 of file SceneDescription.cpp.
|
private |
A container holding the resources required by the scene. A background scene will hold other resources than a foreground scene.
Definition at line 123 of file SceneDescription.h.
|
private |
A wrapper for the scene's metadata.
Definition at line 117 of file SceneDescription.h.
|
private |
handle for the file that will contain the results from the runtime test.
Definition at line 112 of file SceneDescription.h.
|
private |
Coordinates the primary scene object visualization.
Definition at line 128 of file SceneDescription.h.