#include <TermEvaluator.h>
Public Member Functions | |
virtual double | calculateProbabilityForHypothesis (std::vector< ISM::Object > pEvidenceList, std::vector< unsigned int > pAssignments)=0 |
virtual unsigned int | getNumberOfSlots ()=0 |
virtual void | initializeVisualizer (boost::shared_ptr< Visualization::ProbabilisticPrimarySceneObjectVisualization > mSuperior)=0 |
virtual void | load (boost::property_tree::ptree &pPt)=0 |
TermEvaluator () | |
virtual void | visualize (std::vector< ISM::Object > pEvidenceList)=0 |
virtual | ~TermEvaluator () |
Abstract class to encapsulate the creation and maintenance of a joint probability distribution. The distributions are loaded from XML file. Object evidence will also be handles by this class, especially the case when new evidence was found and the model needs rebuilding.
Definition at line 40 of file TermEvaluator.h.
ProbabilisticSceneRecognition::TermEvaluator::TermEvaluator | ( | ) |
Constructor.
Definition at line 22 of file TermEvaluator.cpp.
|
virtual |
Destructor.
Definition at line 26 of file TermEvaluator.cpp.
|
pure virtual |
Calculates the probability for a hypothesis with the given assignments.
pEvidenceList | A list containing all evidences. |
pAssignments | Assignments of parts to slots. |
Implemented in ProbabilisticSceneRecognition::AppearanceTermEvaluator, ProbabilisticSceneRecognition::OcclusionTermEvaluator, and ProbabilisticSceneRecognition::ShapeTermEvaluator.
|
pure virtual |
Returns the number of slots of the OCM (equals the number of distributions).
Implemented in ProbabilisticSceneRecognition::AppearanceTermEvaluator, ProbabilisticSceneRecognition::OcclusionTermEvaluator, and ProbabilisticSceneRecognition::ShapeTermEvaluator.
|
pure virtual |
Initializes the visualization mechanism.
mSuperior | The superior visualizer coordinating the scene visualizers. |
Implemented in ProbabilisticSceneRecognition::AppearanceTermEvaluator, ProbabilisticSceneRecognition::OcclusionTermEvaluator, and ProbabilisticSceneRecognition::ShapeTermEvaluator.
|
pure virtual |
Loads the working data from an XML file.
pPt | Data structure for performing XML operations. |
Implemented in ProbabilisticSceneRecognition::AppearanceTermEvaluator, ProbabilisticSceneRecognition::OcclusionTermEvaluator, and ProbabilisticSceneRecognition::ShapeTermEvaluator.
|
pure virtual |
Update the visualizers based on the evidence.
pEvidenceList | A list containing all evidences. |
Implemented in ProbabilisticSceneRecognition::AppearanceTermEvaluator, ProbabilisticSceneRecognition::OcclusionTermEvaluator, and ProbabilisticSceneRecognition::ShapeTermEvaluator.