#include <OcmSceneObjectLearner.h>
Public Member Functions | |
void | initializeVisualizer (boost::shared_ptr< Visualization::ProbabilisticSceneVisualization > mSuperior) |
void | learn (std::vector< ISM::ObjectSetPtr > pExamplesList, boost::shared_ptr< SceneModel::TreeNode > pTree) |
OcmSceneObjectLearner (std::string pSceneObjectType, std::string pSceneName="") | |
void | save (boost::property_tree::ptree &pPt) |
~OcmSceneObjectLearner () | |
Public Member Functions inherited from ProbabilisticSceneRecognition::SceneObjectLearner | |
bool | hasType (std::string pSceneObjectType) |
SceneObjectLearner (std::string pSceneObjectType) | |
void | setClusteringParameters (double pStaticBreakRatio, double pTogetherRatio, double pMaxAngleDeviation) |
void | setPriori (double pPriori) |
void | setVolumeOfWorkspace (double pValue) |
virtual | ~SceneObjectLearner () |
Private Attributes | |
boost::shared_ptr< OcmModel > | mOcmModel |
std::vector< boost::shared_ptr< TermLearner > > | mTermLearners |
boost::shared_ptr< Visualization::ProbabilisticPrimarySceneObjectVisualization > | mVisualizer |
Additional Inherited Members | |
Protected Attributes inherited from ProbabilisticSceneRecognition::SceneObjectLearner | |
double | mMaxAngleDeviation |
double | mPriori |
std::string | mSceneObjectType |
double | mStaticBreakRatio |
double | mTogetherRatio |
double | mWorkspaceVolume |
A learner for a scene object based on the OCM.
Definition at line 53 of file OcmSceneObjectLearner.h.
ProbabilisticSceneRecognition::OcmSceneObjectLearner::OcmSceneObjectLearner | ( | std::string | pSceneObjectType, |
std::string | pSceneName = "" |
||
) |
Constructor.
pSceneObjectType | The type of the scene object. |
pSceneName | The name of the scene. |
Definition at line 22 of file OcmSceneObjectLearner.cpp.
ProbabilisticSceneRecognition::OcmSceneObjectLearner::~OcmSceneObjectLearner | ( | ) |
Destructor.
Definition at line 31 of file OcmSceneObjectLearner.cpp.
|
virtual |
Initializes the visualization mechanism.
mSuperior | The superior visualizer coordinating the scene visualizers. |
Implements ProbabilisticSceneRecognition::SceneObjectLearner.
Definition at line 35 of file OcmSceneObjectLearner.cpp.
|
virtual |
Learns the scene object.
pExamplesList | A list of all examples for the scene this scene object belongs to. |
pTree | The relation tree. |
Implements ProbabilisticSceneRecognition::SceneObjectLearner.
Definition at line 68 of file OcmSceneObjectLearner.cpp.
|
virtual |
Saves the scene to XML file.
pPt | Datastructure for handling XML operations. |
Implements ProbabilisticSceneRecognition::SceneObjectLearner.
Definition at line 50 of file OcmSceneObjectLearner.cpp.
|
private |
The root node of the OCM tree required for learning the parameters.
Definition at line 96 of file OcmSceneObjectLearner.h.
|
private |
A list of term learners. They calculate the parameter for the terms the OCM consists of.
Definition at line 101 of file OcmSceneObjectLearner.h.
|
private |
Coordinates the secondary scene object visualizers.
Definition at line 106 of file OcmSceneObjectLearner.h.