20 #include <boost/shared_ptr.hpp> 21 #include <boost/filesystem.hpp> 44 #include "../typedef.hpp" 48 using boost::filesystem::path;
58 std::map<std::string, std::pair<double, TreePtr> >
learn();
79 std::pair<PatternNameToObjectSet, PatternNameToObjectSet>
mTestSets;
89 void drawISM(
unsigned ismId, std::string
patternName, std::map<std::string, std::vector<VoteSpecifierPtr> > voteSpecifiersPerObject);
93 bool checkCorrectOrder(std::map<std::string, ISM::ObjectRelations> allObjectRelationsPerPattern);
97 const path dbFilePath,
98 const std::string & type);
102 std::pair<PatternNameToObjectSet, PatternNameToObjectSet>
createTestSets(
double binSize,
double maxAngleDeviation,
103 double confidenceThreshold,
unsigned int testSetCount);
105 void initTestSets(
double binSize,
double maxAngleDeviation,
double confidenceThreshold,
106 std::string loadValidTestSetsFrom, std::string loadInvalidTestSetsFrom,
unsigned int testSetCount);
boost::shared_ptr< TopologyValidationResults > TopologyValidationResultsPtr
void storePatternToDB(std::map< std::string, IsmPtr > bestISMPerPattern)
std::pair< PatternNameToObjectSet, PatternNameToObjectSet > mTestSets
CombinatorialTrainerParameters mParams
std::map< std::string, ISM::ObjectRelations > allObjectRelationsPerPattern
TableHelperPtr tableHelper
bool checkCorrectOrder(std::map< std::string, ISM::ObjectRelations > allObjectRelationsPerPattern)
bool containsAllObjects(const ISM::ObjectRelations &topology, const std::string &patternName) const
boost::shared_ptr< TableHelper > TableHelperPtr
std::pair< PatternNameToObjectSet, PatternNameToObjectSet > createTestSets(double binSize, double maxAngleDeviation, double confidenceThreshold, unsigned int testSetCount)
void drawISM(unsigned ismId, std::string patternName, std::map< std::string, std::vector< VoteSpecifierPtr > > voteSpecifiersPerObject)
std::map< std::string, std::map< std::string, boost::filesystem::path > > objectModelsPerPattern
std::map< std::string, std::vector< ObjectSetPtr > > PatternNameToObjectSet
void initStartTopologiesPerPattern(std::string loadStartTopologiesFrom)
void storeTestSetsToDB(PatternNameToObjectSet testSet, const path dbFilePath, const std::string &type)
const std::map< std::string, ISM::TracksPtr > getRecordedObjectsTracks()
std::map< unsigned int, ISM::ObjectRelationPtr, std::less< unsigned > > ObjectRelations
std::map< std::string, std::vector< ISM::ObjectRelationPtr > > allSelfRelationsPerPattern
boost::shared_ptr< DocumentationHelper > DocumentationHelperPtr
CombinatorialTrainer(CombinatorialTrainerParameters params)
boost::shared_ptr< CombinatorialTrainer > CombinatorialTrainerPtr
TopologyValidationResultsPtr getValidationResultsForPattern(std::string patternName)
std::map< std::string, std::pair< double, TreePtr > > learn()
void initTestSets(double binSize, double maxAngleDeviation, double confidenceThreshold, std::string loadValidTestSetsFrom, std::string loadInvalidTestSetsFrom, unsigned int testSetCount)
std::map< std::string, std::vector< TopologyPtr > > mStartTopologiesPerPattern
DocumentationHelperPtr mDocumentationHelper
PatternNameToObjectSet loadTestSetsFromDB(std::string fileName)
const std::map< std::string, ISM::ObjectRelations > calculateAllObjectRelations()
std::string genTimeString()
std::map< std::string, IsmPtr > mFullyMeshedTopologyPerPattern
std::vector< std::string > patternNames
std::map< std::string, ISM::TracksPtr > objectTracksPerPattern
this namespace contains all generally usable classes.
std::map< std::string, IsmPtr > learnFullyMeshedTopologyPerPattern(bool naive=false)