Main Page
+
Namespaces
Namespace List
+
Namespace Members
+
All
c
d
g
m
o
p
r
s
t
x
+
Functions
d
g
m
p
r
s
t
x
Variables
+
Classes
Class List
Class Hierarchy
+
Class Members
+
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
~
+
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
~
+
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
+
Files
File List
+
File Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
y
z
+
Typedefs
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
y
+
Macros
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
y
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 Mon Feb 28 2022 21:50:12