Public Member Functions | Private Member Functions | Private Attributes | List of all members
ISM::CombinatorialTrainer Class Reference

#include <CombinatorialTrainer.hpp>

Public Member Functions

 CombinatorialTrainer (CombinatorialTrainerParameters params)
 
std::map< std::string, std::pair< double, TreePtr > > learn ()
 

Private Member Functions

const std::map< std::string, ISM::ObjectRelationscalculateAllObjectRelations ()
 
bool checkCorrectOrder (std::map< std::string, ISM::ObjectRelations > allObjectRelationsPerPattern)
 
bool containsAllObjects (const ISM::ObjectRelations &topology, const std::string &patternName) const
 
std::pair< PatternNameToObjectSet, PatternNameToObjectSetcreateTestSets (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::string genTimeString ()
 
const std::map< std::string, ISM::TracksPtrgetRecordedObjectsTracks ()
 
TopologyValidationResultsPtr getValidationResultsForPattern (std::string patternName)
 
void initStartTopologiesPerPattern (std::string loadStartTopologiesFrom)
 
void initTestSets (double binSize, double maxAngleDeviation, double confidenceThreshold, std::string loadValidTestSetsFrom, std::string loadInvalidTestSetsFrom, unsigned int testSetCount)
 
std::map< std::string, IsmPtrlearnFullyMeshedTopologyPerPattern (bool naive=false)
 
PatternNameToObjectSet loadTestSetsFromDB (std::string fileName)
 
void storePatternToDB (std::map< std::string, IsmPtr > bestISMPerPattern)
 
void storeTestSetsToDB (PatternNameToObjectSet testSet, const path dbFilePath, const std::string &type)
 

Private Attributes

std::map< std::string, ISM::ObjectRelationsallObjectRelationsPerPattern
 
std::map< std::string, std::vector< ISM::ObjectRelationPtr > > allSelfRelationsPerPattern
 
path mDBPath
 
DocumentationHelperPtr mDocumentationHelper
 
std::map< std::string, IsmPtrmFullyMeshedTopologyPerPattern
 
path mOutputDataPath
 
CombinatorialTrainerParameters mParams
 
std::map< std::string, std::vector< TopologyPtr > > mStartTopologiesPerPattern
 
std::pair< PatternNameToObjectSet, PatternNameToObjectSetmTestSets
 
std::map< std::string, std::map< std::string, boost::filesystem::path > > objectModelsPerPattern
 
std::map< std::string, ISM::TracksPtrobjectTracksPerPattern
 
std::vector< std::string > patternNames
 
TableHelperPtr tableHelper
 

Detailed Description

CombinatorialTrainer class. In opposite to the "Trainer" class, this class build a scene model depending only on the relevant relations between objects in the scene

Definition at line 53 of file CombinatorialTrainer.hpp.

Constructor & Destructor Documentation

ISM::CombinatorialTrainer::CombinatorialTrainer ( CombinatorialTrainerParameters  params)

Definition at line 40 of file CombinatorialTrainer.cpp.

Member Function Documentation

const std::map< std::string, ISM::ObjectRelations > ISM::CombinatorialTrainer::calculateAllObjectRelations ( )
private

Definition at line 209 of file CombinatorialTrainer.cpp.

bool ISM::CombinatorialTrainer::checkCorrectOrder ( std::map< std::string, ISM::ObjectRelations allObjectRelationsPerPattern)
private

Definition at line 263 of file CombinatorialTrainer.cpp.

bool ISM::CombinatorialTrainer::containsAllObjects ( const ISM::ObjectRelations topology,
const std::string &  patternName 
) const
private

Definition at line 306 of file CombinatorialTrainer.cpp.

std::pair< PatternNameToObjectSet, PatternNameToObjectSet > ISM::CombinatorialTrainer::createTestSets ( double  binSize,
double  maxAngleDeviation,
double  confidenceThreshold,
unsigned int  testSetCount 
)
private

Definition at line 401 of file CombinatorialTrainer.cpp.

void ISM::CombinatorialTrainer::drawISM ( unsigned  ismId,
std::string  patternName,
std::map< std::string, std::vector< VoteSpecifierPtr > >  voteSpecifiersPerObject 
)
private
std::string ISM::CombinatorialTrainer::genTimeString ( )
private

Definition at line 464 of file CombinatorialTrainer.cpp.

const std::map< std::string, ISM::TracksPtr > ISM::CombinatorialTrainer::getRecordedObjectsTracks ( )
private

Definition at line 164 of file CombinatorialTrainer.cpp.

TopologyValidationResultsPtr ISM::CombinatorialTrainer::getValidationResultsForPattern ( std::string  patternName)
private
void ISM::CombinatorialTrainer::initStartTopologiesPerPattern ( std::string  loadStartTopologiesFrom)
private

Definition at line 477 of file CombinatorialTrainer.cpp.

void ISM::CombinatorialTrainer::initTestSets ( double  binSize,
double  maxAngleDeviation,
double  confidenceThreshold,
std::string  loadValidTestSetsFrom,
std::string  loadInvalidTestSetsFrom,
unsigned int  testSetCount 
)
private

Definition at line 430 of file CombinatorialTrainer.cpp.

std::map< std::string, std::pair< double, TreePtr > > ISM::CombinatorialTrainer::learn ( )

Definition at line 102 of file CombinatorialTrainer.cpp.

std::map< std::string, IsmPtr > ISM::CombinatorialTrainer::learnFullyMeshedTopologyPerPattern ( bool  naive = false)
private

Definition at line 328 of file CombinatorialTrainer.cpp.

PatternNameToObjectSet ISM::CombinatorialTrainer::loadTestSetsFromDB ( std::string  fileName)
private

Definition at line 384 of file CombinatorialTrainer.cpp.

void ISM::CombinatorialTrainer::storePatternToDB ( std::map< std::string, IsmPtr bestISMPerPattern)
private
void ISM::CombinatorialTrainer::storeTestSetsToDB ( PatternNameToObjectSet  testSet,
const path  dbFilePath,
const std::string &  type 
)
private

Definition at line 346 of file CombinatorialTrainer.cpp.

Member Data Documentation

std::map<std::string, ISM::ObjectRelations> ISM::CombinatorialTrainer::allObjectRelationsPerPattern
private

Definition at line 66 of file CombinatorialTrainer.hpp.

std::map<std::string, std::vector<ISM::ObjectRelationPtr> > ISM::CombinatorialTrainer::allSelfRelationsPerPattern
private

Definition at line 68 of file CombinatorialTrainer.hpp.

path ISM::CombinatorialTrainer::mDBPath
private

Definition at line 72 of file CombinatorialTrainer.hpp.

DocumentationHelperPtr ISM::CombinatorialTrainer::mDocumentationHelper
private

Definition at line 74 of file CombinatorialTrainer.hpp.

std::map<std::string, IsmPtr> ISM::CombinatorialTrainer::mFullyMeshedTopologyPerPattern
private

Definition at line 76 of file CombinatorialTrainer.hpp.

path ISM::CombinatorialTrainer::mOutputDataPath
private

Definition at line 71 of file CombinatorialTrainer.hpp.

CombinatorialTrainerParameters ISM::CombinatorialTrainer::mParams
private

Definition at line 81 of file CombinatorialTrainer.hpp.

std::map<std::string, std::vector<TopologyPtr> > ISM::CombinatorialTrainer::mStartTopologiesPerPattern
private

Definition at line 77 of file CombinatorialTrainer.hpp.

std::pair<PatternNameToObjectSet, PatternNameToObjectSet> ISM::CombinatorialTrainer::mTestSets
private

Definition at line 79 of file CombinatorialTrainer.hpp.

std::map<std::string, std::map<std::string, boost::filesystem::path> > ISM::CombinatorialTrainer::objectModelsPerPattern
private

Definition at line 70 of file CombinatorialTrainer.hpp.

std::map<std::string, ISM::TracksPtr> ISM::CombinatorialTrainer::objectTracksPerPattern
private

Definition at line 64 of file CombinatorialTrainer.hpp.

std::vector<std::string> ISM::CombinatorialTrainer::patternNames
private

Definition at line 62 of file CombinatorialTrainer.hpp.

TableHelperPtr ISM::CombinatorialTrainer::tableHelper
private

Definition at line 60 of file CombinatorialTrainer.hpp.


The documentation for this class was generated from the following files:


asr_lib_ism
Author(s): Hanselmann Fabian, Heller Florian, Heizmann Heinrich, Kübler Marcel, Mehlhaus Jonas, Meißner Pascal, Qattan Mohamad, Reckling Reno, Stroh Daniel
autogenerated on Wed Jan 8 2020 04:02:41