#include <TestSetSelection.h>
Public Member Functions | |
void | removeMisclassifiedTestSets (double pRecognitionThreshold) |
void | removeUnusableTestSets (double &pMinValidProbability, double &pMaxInvalidProbability) |
void | takeXTestSets (unsigned int pTestSetCount) |
TestSetSelection (boost::shared_ptr< AbstractTopologyEvaluator > pEvaluator) | |
~TestSetSelection () | |
Private Attributes | |
boost::shared_ptr< AbstractTopologyEvaluator > | mEvaluator |
PrintHelper | mPrintHelper |
This class can be used to filter out test sets loaded from files that are classified as valid or invalid incorrectly considering the Probabilistic Scene Model.
Definition at line 28 of file TestSetSelection.h.
ProbabilisticSceneRecognition::TestSetSelection::TestSetSelection | ( | boost::shared_ptr< AbstractTopologyEvaluator > | pEvaluator | ) |
Constructor.
pEvaluator | the Evaluator that contains the test sets that should be filtered. |
Definition at line 22 of file TestSetSelection.cpp.
ProbabilisticSceneRecognition::TestSetSelection::~TestSetSelection | ( | ) |
Destructor.
Definition at line 26 of file TestSetSelection.cpp.
void ProbabilisticSceneRecognition::TestSetSelection::removeMisclassifiedTestSets | ( | double | pRecognitionThreshold | ) |
Removes valid test sets below and invalid test sets above given recognition threshold.
pRecognitionThreshold | threshold above which test sets are supposed to be classified as valid. |
Definition at line 121 of file TestSetSelection.cpp.
void ProbabilisticSceneRecognition::TestSetSelection::removeUnusableTestSets | ( | double & | pMinValidProbability, |
double & | pMaxInvalidProbability | ||
) |
Removes unusable test sets from the evaluator. Test sets are considered unusable if they were loaded as valid or invalid but their probability when tested against the fully meshed topology was either lower than the highest invalid probability (in case of valid test sets) or higher than the smalles valid one.
pMinValidProbability | the minimum probability of the valid test sets after the unsusable ones were removed. |
pMaxInvalidProbability | the maximum probability of the invalid test sets after the unsusable ones were removed. |
Definition at line 29 of file TestSetSelection.cpp.
void ProbabilisticSceneRecognition::TestSetSelection::takeXTestSets | ( | unsigned int | pTestSetCount | ) |
If there are more than X = pTestSetCount test sets, take only X.
pTestSetCount | number of test sets to take. |
Definition at line 145 of file TestSetSelection.cpp.
|
private |
The evaluator contains the test sets that should be filtered.
Definition at line 69 of file TestSetSelection.h.
|
private |
Helper used to print information as headers, marked with special dividers.
Definition at line 74 of file TestSetSelection.h.