#include <ForegroundInferenceAlgorithm.h>
Public Member Functions | |
virtual void | doInference (std::vector< ISM::Object > pEvidenceList, std::ofstream &pRuntimeLogger)=0 |
ForegroundInferenceAlgorithm (boost::shared_ptr< std::vector< boost::shared_ptr< SceneObjectDescription > > > &pSceneObjects) | |
virtual double | getProbability ()=0 |
void | load (boost::property_tree::ptree &pPt) |
~ForegroundInferenceAlgorithm () | |
Public Member Functions inherited from ProbabilisticSceneRecognition::InferenceAlgorithm | |
InferenceAlgorithm () | |
virtual | ~InferenceAlgorithm () |
Protected Attributes | |
boost::shared_ptr< std::vector< boost::shared_ptr< SceneObjectDescription > > > | mSceneObjects |
Abstract subclass of the also abstract InferenceAlgorithm class. It provides the calculations for a background scene object. This is basically a foreground scene object which is evaluated under the assumption of equal distribution.
Definition at line 46 of file ForegroundInferenceAlgorithm.h.
ProbabilisticSceneRecognition::ForegroundInferenceAlgorithm::ForegroundInferenceAlgorithm | ( | boost::shared_ptr< std::vector< boost::shared_ptr< SceneObjectDescription > > > & | pSceneObjects | ) |
Constructor.
pSceneObjects | The scene objects associated with this foreground scene. |
Definition at line 22 of file ForegroundInferenceAlgorithm.cpp.
ProbabilisticSceneRecognition::ForegroundInferenceAlgorithm::~ForegroundInferenceAlgorithm | ( | ) |
Destructor.
Definition at line 28 of file ForegroundInferenceAlgorithm.cpp.
|
pure virtual |
Executes the inference based on the given evidence.
pEvidenceList | A list containing all evidences. |
pRuntimeLogger | A file handle for runtime logging. |
Implements ProbabilisticSceneRecognition::InferenceAlgorithm.
Implemented in ProbabilisticSceneRecognition::MaximumForegroundInferenceAlgorithm, ProbabilisticSceneRecognition::MultipliedForegroundInferenceAlgorithm, ProbabilisticSceneRecognition::PowerSetForegroundInferenceAlgorithm, and ProbabilisticSceneRecognition::SummarizedForegroundInferenceAlgorithm.
|
pure virtual |
Returns the probability calculated by the inference process.
Implements ProbabilisticSceneRecognition::InferenceAlgorithm.
Implemented in ProbabilisticSceneRecognition::MaximumForegroundInferenceAlgorithm, ProbabilisticSceneRecognition::MultipliedForegroundInferenceAlgorithm, ProbabilisticSceneRecognition::PowerSetForegroundInferenceAlgorithm, and ProbabilisticSceneRecognition::SummarizedForegroundInferenceAlgorithm.
|
virtual |
Loads the model from an XML file.
pPt | Data structure for performing XML operations. |
Implements ProbabilisticSceneRecognition::InferenceAlgorithm.
Definition at line 32 of file ForegroundInferenceAlgorithm.cpp.
|
protected |
The scene objects associated with this foreground scene.
Definition at line 88 of file ForegroundInferenceAlgorithm.h.