#include <TestSetGenerator.h>
Generates random evidence test sets.
Definition at line 39 of file TestSetGenerator.h.
Constructor
- Parameters
-
pEvaluator | evaluator used to validate test sets. |
pFullyMeshedTopology | fully meshed topology used to validate test sets. |
pObjectTypes | types of objects appearing in test sets (once each). |
Definition at line 22 of file TestSetGenerator.cpp.
ProbabilisticSceneRecognition::TestSetGenerator::~TestSetGenerator |
( |
| ) |
|
virtual std::vector<boost::shared_ptr<TestSet> > ProbabilisticSceneRecognition::TestSetGenerator::generateRandomSets |
( |
std::vector< boost::shared_ptr< ISM::ObjectSet >> |
pExamplesList, |
|
|
unsigned int |
pTestSetCount |
|
) |
| |
|
protectedpure virtual |
void ProbabilisticSceneRecognition::TestSetGenerator::generateTestSets |
( |
std::vector< boost::shared_ptr< ISM::ObjectSet >> |
pExamplesList, |
|
|
unsigned int |
pTestSetCount |
|
) |
| |
Generate and validate random test sets. Set evaluator's sets accordingly.
- Parameters
-
pExamplesList | list of object observations serving as basis of the test sets. |
pTestSetCount | number of test sets to generate. |
Definition at line 49 of file TestSetGenerator.cpp.
std::vector< boost::shared_ptr< TestSet > > ProbabilisticSceneRecognition::TestSetGenerator::loadTestSetsFromFile |
( |
const std::string & |
pFilename | ) |
|
|
private |
Load test sets from database file.
- Parameters
-
filename | of the database file. |
- Returns
- the test sets loaded from the file.
Definition at line 140 of file TestSetGenerator.cpp.
void ProbabilisticSceneRecognition::TestSetGenerator::setPoseOfObjectRelativeToReference |
( |
ISM::ObjectPtr |
pObject, |
|
|
ISM::ObjectPtr |
pReference |
|
) |
| |
|
protected |
Set the pose of a given object relative to a reference object.
- Parameters
-
pObject | the object to have its pose transformed. |
pReference | the reference object. |
Definition at line 133 of file TestSetGenerator.cpp.
Simulate Occlusion of objects by cutting them from the test sets with a certain probability.
- Parameters
-
pCompleteTestSets | The test sets containing all objects each. |
- Returns
- Tets sets with missing objects.
Definition at line 196 of file TestSetGenerator.cpp.
void ProbabilisticSceneRecognition::TestSetGenerator::validateSets |
( |
std::vector< boost::shared_ptr< TestSet >> |
pTestSets | ) |
|
|
private |
Validate whether test sets represent scene.
- Parameters
-
pTestSets | the test sets to validate. |
Definition at line 79 of file TestSetGenerator.cpp.
void ProbabilisticSceneRecognition::TestSetGenerator::writeTestSetsToFile |
( |
const std::string & |
pFilename, |
|
|
const std::vector< boost::shared_ptr< TestSet >> & |
pTestSets |
|
) |
| |
|
private |
Write generated tets sets to database file.
- Parameters
-
filename | of the database file. |
testSets | the test sets to write to file |
Definition at line 174 of file TestSetGenerator.cpp.
boost::shared_ptr<SceneModel::Topology> ProbabilisticSceneRecognition::TestSetGenerator::mFullyMeshedTopology |
|
private |
std::string ProbabilisticSceneRecognition::TestSetGenerator::mInvalidTestSetDbFilename |
|
private |
Database file to load the invalid test sets from. New test sets are created if this is set to ''.
Definition at line 137 of file TestSetGenerator.h.
The test sets that resemble but do not represent the considered scene.
Definition at line 127 of file TestSetGenerator.h.
double ProbabilisticSceneRecognition::TestSetGenerator::mObjectMissingInTestSetProbability |
|
private |
Probability with which an object does not appear in a test set. set to 0 to have all objects appear in each test set
Definition at line 157 of file TestSetGenerator.h.
PrintHelper ProbabilisticSceneRecognition::TestSetGenerator::mPrintHelper |
|
protected |
Class used to print lines as headers, marked with dividers.
Definition at line 169 of file TestSetGenerator.h.
std::string ProbabilisticSceneRecognition::TestSetGenerator::mSceneId |
|
private |
std::vector<std::string> ProbabilisticSceneRecognition::TestSetGenerator::mTypes |
|
protected |
std::string ProbabilisticSceneRecognition::TestSetGenerator::mValidTestSetDbFilename |
|
private |
Database file to load the valid test sets from. New test sets are created if this is set to ''.
Definition at line 132 of file TestSetGenerator.h.
std::string ProbabilisticSceneRecognition::TestSetGenerator::mWriteInvalidTestSetsFilename |
|
private |
Database file to write newly created invalid testsets to. Test sets are not written if they were loaded from files or this parameter is set to ''.
Definition at line 147 of file TestSetGenerator.h.
std::string ProbabilisticSceneRecognition::TestSetGenerator::mWriteValidTestSetsFilename |
|
private |
Database file to write newly created valid testsets to. Test sets are not written if they were loaded from files or this parameter is set to ''.
Definition at line 142 of file TestSetGenerator.h.
The documentation for this class was generated from the following files:
asr_psm
Author(s): Braun Kai, Gehrung Joachim, Heizmann Heinrich, Meißner Pascal
autogenerated on Fri Nov 15 2019 04:00:09