#include <SceneLearner.h>

Public Member Functions | |
| void | addExampleToScene (const ISM::ObjectSetPtr pExample) |
| virtual void | initializeVisualizer (boost::shared_ptr< Visualization::ProbabilisticSceneModelVisualization > mSuperior)=0 |
| bool | isExampleForScene (const ISM::ObjectSetPtr pExample) |
| virtual void | learn ()=0 |
| virtual void | save (boost::property_tree::ptree &pPt)=0 |
| SceneLearner (std::string pSceneName) | |
| SceneLearner () | |
| void | setPriori (double pPriori) |
| void | setVolumeOfWorkspace (double pValue) |
| virtual | ~SceneLearner () |
Protected Attributes | |
| std::vector< ISM::ObjectSetPtr > | mExamplesList |
| double | mPriori |
| std::string | mSceneName |
| double | mWorkspaceVolume |
| ProbabilisticSceneRecognition::SceneLearner::SceneLearner | ( | std::string | pSceneName | ) |
Constructor.
| pSceneName | The scene of the scene. |
Definition at line 22 of file SceneLearner.cpp.
| ProbabilisticSceneRecognition::SceneLearner::SceneLearner | ( | ) |
Constructor.
Definition at line 28 of file SceneLearner.cpp.
|
virtual |
Destructor.
Definition at line 33 of file SceneLearner.cpp.
| void ProbabilisticSceneRecognition::SceneLearner::addExampleToScene | ( | const ISM::ObjectSetPtr | pExample | ) |
Adds an ISM::ObjectSet to the learner.
| pExample | ISM::ObjectSet containing an example for the given scene. |
Definition at line 47 of file SceneLearner.cpp.
|
pure virtual |
Initializes the visualization mechanism.
| mSuperior | The superior visualizer coordinating the scene visualizers. |
Implemented in ProbabilisticSceneRecognition::OcmForegroundSceneLearner, ProbabilisticSceneRecognition::BackgroundSceneLearner, and ProbabilisticSceneRecognition::ForegroundSceneLearner.
| bool ProbabilisticSceneRecognition::SceneLearner::isExampleForScene | ( | const ISM::ObjectSetPtr | pExample | ) |
Checks, if the given ISM::ObjectSet contains an example for this scene.
Definition at line 38 of file SceneLearner.cpp.
|
pure virtual |
Learns the scene.
Implemented in ProbabilisticSceneRecognition::OcmForegroundSceneLearner, ProbabilisticSceneRecognition::BackgroundSceneLearner, and ProbabilisticSceneRecognition::ForegroundSceneLearner.
|
pure virtual |
Saves the scene to XML file.
| pPt | Datastructure for handling XML operations. |
Implemented in ProbabilisticSceneRecognition::OcmForegroundSceneLearner, ProbabilisticSceneRecognition::BackgroundSceneLearner, and ProbabilisticSceneRecognition::ForegroundSceneLearner.
| void ProbabilisticSceneRecognition::SceneLearner::setPriori | ( | double | pPriori | ) |
Sets the a priori probability of the scene.
| pPriori | The a priori probability of the scene. |
Definition at line 58 of file SceneLearner.cpp.
| void ProbabilisticSceneRecognition::SceneLearner::setVolumeOfWorkspace | ( | double | pValue | ) |
Sets the volume of the workspace.
| pValue | The volume of the workspace. |
Definition at line 53 of file SceneLearner.cpp.
|
protected |
A list of all examples provided for this scene.
Definition at line 130 of file SceneLearner.h.
|
protected |
The a priori probability for this scene. Will be set to an equal distribution for all scenes.
Definition at line 115 of file SceneLearner.h.
|
protected |
The name of the scene. It is required for filtering ISM::ObjetSets and the export to file.
Definition at line 125 of file SceneLearner.h.
|
protected |
The volume of the workspace the scene takes place in qubic meters.
Definition at line 120 of file SceneLearner.h.