#include <AppearanceTermEvaluator.h>
Public Member Functions | |
AppearanceTermEvaluator () | |
double | calculateProbabilityForHypothesis (std::vector< ISM::Object > pEvidenceList, std::vector< unsigned int > pAssignments) |
unsigned int | getNumberOfSlots () |
void | initializeVisualizer (boost::shared_ptr< Visualization::ProbabilisticPrimarySceneObjectVisualization > mSuperior) |
void | load (boost::property_tree::ptree &pPt) |
void | visualize (std::vector< ISM::Object > pEvidenceList) |
~AppearanceTermEvaluator () | |
Public Member Functions inherited from ProbabilisticSceneRecognition::TermEvaluator | |
TermEvaluator () | |
virtual | ~TermEvaluator () |
Private Attributes | |
boost::shared_ptr< MappedProbabilityTable > | mMappedTable |
Subclass of the abstract TermEvaluator class responsible for the appearance distribution.It uses a table based probability model that supports mapping from clear text object types to table indices.
Definition at line 49 of file AppearanceTermEvaluator.h.
ProbabilisticSceneRecognition::AppearanceTermEvaluator::AppearanceTermEvaluator | ( | ) |
Constructor.
pSubtree | The name of the subtree in the XML file where to load the data from. |
Definition at line 22 of file AppearanceTermEvaluator.cpp.
ProbabilisticSceneRecognition::AppearanceTermEvaluator::~AppearanceTermEvaluator | ( | ) |
Destructor.
Definition at line 29 of file AppearanceTermEvaluator.cpp.
|
virtual |
Calculates the probability for a hypothesis with the given assignments.
pEvidenceList | A list containing all evidences. |
pAssignments | Assignments of parts to slots. |
Implements ProbabilisticSceneRecognition::TermEvaluator.
Definition at line 44 of file AppearanceTermEvaluator.cpp.
|
virtual |
Returns the number of slots of the OCM (equals the number of distributions).
Implements ProbabilisticSceneRecognition::TermEvaluator.
Definition at line 91 of file AppearanceTermEvaluator.cpp.
|
virtual |
Initializes the visualization mechanism.
mSuperior | The superior visualizer coordinating the scene visualizers. |
Implements ProbabilisticSceneRecognition::TermEvaluator.
Definition at line 39 of file AppearanceTermEvaluator.cpp.
|
virtual |
Loads the working data from an XML file.
pPt | Data structure for performing XML operations. |
Implements ProbabilisticSceneRecognition::TermEvaluator.
Definition at line 33 of file AppearanceTermEvaluator.cpp.
|
virtual |
Update the visualizers based on the evidence.
pEvidenceList | A list containing all evidences. |
Implements ProbabilisticSceneRecognition::TermEvaluator.
Definition at line 86 of file AppearanceTermEvaluator.cpp.
|
private |
A probability table that entries could be adressed by clear text object names.
Definition at line 106 of file AppearanceTermEvaluator.h.