Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.learn.boosting
Commits
6d4c1df8
Commit
6d4c1df8
authored
Nov 12, 2013
by
Manuel Günther
Browse files
Fixed bug in writing string attributes.
parent
a8f5ad67
Changes
2
Hide whitespace changes
Inline
Side-by-side
xbob/boosting/cpp/lutmachine.cpp
View file @
6d4c1df8
...
@@ -86,5 +86,5 @@ void LUTMachine::load(bob::io::HDF5File& file){
...
@@ -86,5 +86,5 @@ void LUTMachine::load(bob::io::HDF5File& file){
void
LUTMachine
::
save
(
bob
::
io
::
HDF5File
&
file
)
const
{
void
LUTMachine
::
save
(
bob
::
io
::
HDF5File
&
file
)
const
{
file
.
setArray
(
"LUT"
,
m_look_up_tables
);
file
.
setArray
(
"LUT"
,
m_look_up_tables
);
file
.
setArray
(
"Indices"
,
m_indices
);
file
.
setArray
(
"Indices"
,
m_indices
);
file
.
setAttribute
(
"."
,
"MachineType"
,
"LUTMachine"
);
file
.
setAttribute
(
"."
,
"MachineType"
,
std
::
string
(
"LUTMachine"
));
}
}
\ No newline at end of file
xbob/boosting/cpp/stumpmachine.cpp
View file @
6d4c1df8
...
@@ -60,5 +60,5 @@ void StumpMachine::save(bob::io::HDF5File& file) const{
...
@@ -60,5 +60,5 @@ void StumpMachine::save(bob::io::HDF5File& file) const{
file
.
set
(
"Threshold"
,
m_threshold
);
file
.
set
(
"Threshold"
,
m_threshold
);
file
.
set
(
"Polarity"
,
m_polarity
);
file
.
set
(
"Polarity"
,
m_polarity
);
file
.
set
(
"Index"
,
m_index
);
file
.
set
(
"Index"
,
m_index
);
file
.
setAttribute
(
"."
,
"MachineType"
,
"StumpMachine"
);
file
.
setAttribute
(
"."
,
"MachineType"
,
std
::
string
(
"StumpMachine"
));
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment