Main Page
Namespaces
Classes
Files
File List
File Members
src
learner
foreground
ocm
combinatorial_optimization
CombinatorialTrainer.cpp
Go to the documentation of this file.
1
18
#include "
learner/foreground/ocm/combinatorial_optimization/CombinatorialTrainer.h
"
19
20
namespace
ProbabilisticSceneRecognition
{
21
22
CombinatorialTrainer::CombinatorialTrainer
(std::vector<
boost::shared_ptr<SceneObjectLearner>
> pLearners,
23
std::vector<std::string> pObjectTypes)
24
: SceneModel::AbstractTrainer()
25
{
26
std::cout <<
"Learning tree with combinatorial optimization."
<< std::endl;
27
28
// Initilaize a source that translates evidence messages.
29
examplesListSource
=
boost::shared_ptr<SceneModel::ExamplesListSource>
(
new
SceneModel::ExamplesListSource());
30
source =
examplesListSource
;
31
32
// Initialize the generator for building the tree using combinatorial optimization.
33
boost::shared_ptr<CombinatorialGraphGenerator>
gen(
new
CombinatorialGraphGenerator
(pLearners, pObjectTypes));
34
generator = gen;
35
36
std::cout <<
"Combinatorial optimization prepared."
<< std::endl;
37
}
38
39
CombinatorialTrainer::~CombinatorialTrainer
()
40
{ }
41
42
void
CombinatorialTrainer::addSceneGraphMessages
(std::vector<ISM::ObjectSetPtr> pMessages)
43
{
44
examplesListSource
->addSceneGraphMessage(pMessages);
45
}
46
47
}
ProbabilisticSceneRecognition::CombinatorialTrainer::~CombinatorialTrainer
~CombinatorialTrainer()
Definition:
CombinatorialTrainer.cpp:39
boost::shared_ptr
ProbabilisticSceneRecognition::CombinatorialTrainer::addSceneGraphMessages
void addSceneGraphMessages(std::vector< ISM::ObjectSetPtr > pMessages)
Definition:
CombinatorialTrainer.cpp:42
ProbabilisticSceneRecognition::CombinatorialTrainer::CombinatorialTrainer
CombinatorialTrainer(std::vector< boost::shared_ptr< SceneObjectLearner >> pLearners, std::vector< std::string > pObjectTypes)
Definition:
CombinatorialTrainer.cpp:22
ProbabilisticSceneRecognition::CombinatorialGraphGenerator
Definition:
CombinatorialGraphGenerator.h:39
ProbabilisticSceneRecognition
Definition:
MappedProbabilityTable.h:33
CombinatorialTrainer.h
ProbabilisticSceneRecognition::CombinatorialTrainer::examplesListSource
boost::shared_ptr< SceneModel::ExamplesListSource > examplesListSource
Definition:
CombinatorialTrainer.h:65
asr_psm
Author(s): Braun Kai, Gehrung Joachim, Heizmann Heinrich, Meißner Pascal
autogenerated on Fri Nov 15 2019 03:57:54