#include <MaximumForegroundInferenceAlgorithm.h>
Public Member Functions | |
void | doInference (std::vector< ISM::Object > pEvidenceList, std::ofstream &pRuntimeLogger) |
double | getProbability () |
MaximumForegroundInferenceAlgorithm (boost::shared_ptr< std::vector< boost::shared_ptr< SceneObjectDescription > > > &pSceneObjects) | |
~MaximumForegroundInferenceAlgorithm () | |
Public Member Functions inherited from ProbabilisticSceneRecognition::ForegroundInferenceAlgorithm | |
ForegroundInferenceAlgorithm (boost::shared_ptr< std::vector< boost::shared_ptr< SceneObjectDescription > > > &pSceneObjects) | |
void | load (boost::property_tree::ptree &pPt) |
~ForegroundInferenceAlgorithm () | |
Public Member Functions inherited from ProbabilisticSceneRecognition::InferenceAlgorithm | |
InferenceAlgorithm () | |
virtual | ~InferenceAlgorithm () |
Private Attributes | |
double | mProbability |
Additional Inherited Members | |
Protected Attributes inherited from ProbabilisticSceneRecognition::ForegroundInferenceAlgorithm | |
boost::shared_ptr< std::vector< boost::shared_ptr< SceneObjectDescription > > > | mSceneObjects |
Implementation of the abstract ForegroundInferenceAlgorithm class. It evaluates all foreground scene objects and takes the one with the best score.
Definition at line 44 of file MaximumForegroundInferenceAlgorithm.h.
ProbabilisticSceneRecognition::MaximumForegroundInferenceAlgorithm::MaximumForegroundInferenceAlgorithm | ( | 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 MaximumForegroundInferenceAlgorithm.cpp.
ProbabilisticSceneRecognition::MaximumForegroundInferenceAlgorithm::~MaximumForegroundInferenceAlgorithm | ( | ) |
Destructor.
Definition at line 28 of file MaximumForegroundInferenceAlgorithm.cpp.
|
virtual |
Executes the inference based on the given evidence.
pEvidenceList | A list containing all evidences. |
pRuntimeLogger | A file handle for runtime logging. |
Implements ProbabilisticSceneRecognition::ForegroundInferenceAlgorithm.
Definition at line 32 of file MaximumForegroundInferenceAlgorithm.cpp.
|
virtual |
Returns the probability calculated by the inference process.
Implements ProbabilisticSceneRecognition::ForegroundInferenceAlgorithm.
Definition at line 60 of file MaximumForegroundInferenceAlgorithm.cpp.
|
private |
The probability calculated by this algorithm.
Definition at line 80 of file MaximumForegroundInferenceAlgorithm.h.