Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
a1632e02
Commit
a1632e02
authored
Nov 06, 2011
by
Davis King
Browse files
Minor changes to avoid compiler warnings in gcc
parent
f829ad63
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
7 deletions
+8
-7
dlib/svm/structural_object_detection_trainer.h
dlib/svm/structural_object_detection_trainer.h
+2
-2
dlib/svm/structural_sequence_labeling_trainer.h
dlib/svm/structural_sequence_labeling_trainer.h
+1
-1
dlib/test/matrix2.cpp
dlib/test/matrix2.cpp
+1
-0
dlib/test/object_detector.cpp
dlib/test/object_detector.cpp
+1
-1
dlib/test/sequence_labeler.cpp
dlib/test/sequence_labeler.cpp
+3
-3
No files found.
dlib/svm/structural_object_detection_trainer.h
View file @
a1632e02
...
@@ -93,7 +93,7 @@ namespace dlib
...
@@ -93,7 +93,7 @@ namespace dlib
eps
=
eps_
;
eps
=
eps_
;
}
}
const
scalar_type
get_epsilon
(
scalar_type
get_epsilon
(
)
const
{
return
eps
;
}
)
const
{
return
eps
;
}
void
set_max_cache_size
(
void
set_max_cache_size
(
...
@@ -149,7 +149,7 @@ namespace dlib
...
@@ -149,7 +149,7 @@ namespace dlib
C
=
C_
;
C
=
C_
;
}
}
const
scalar_type
get_c
(
scalar_type
get_c
(
)
const
)
const
{
{
return
C
;
return
C
;
...
...
dlib/svm/structural_sequence_labeling_trainer.h
View file @
a1632e02
...
@@ -73,7 +73,7 @@ namespace dlib
...
@@ -73,7 +73,7 @@ namespace dlib
eps
=
eps_
;
eps
=
eps_
;
}
}
const
double
get_epsilon
(
double
get_epsilon
(
)
const
{
return
eps
;
}
)
const
{
return
eps
;
}
void
set_max_cache_size
(
void
set_max_cache_size
(
...
...
dlib/test/matrix2.cpp
View file @
a1632e02
...
@@ -759,6 +759,7 @@ namespace
...
@@ -759,6 +759,7 @@ namespace
matrix
<
double
,
N
,
N
>
v
;
matrix
<
double
,
N
,
N
>
v
;
matrix
<
double
,
M
,
N
>
a2
;
matrix
<
double
,
M
,
N
>
a2
;
a2
=
0
;
a2
=
tmp
(
a
/
2
);
a2
=
tmp
(
a
/
2
);
...
...
dlib/test/object_detector.cpp
View file @
a1632e02
...
@@ -155,7 +155,7 @@ namespace
...
@@ -155,7 +155,7 @@ namespace
inline
friend
void
serialize
(
const
very_simple_feature_extractor
&
item
,
std
::
ostream
&
out
)
{
serialize
(
item
.
feat_image
,
out
);
}
inline
friend
void
serialize
(
const
very_simple_feature_extractor
&
item
,
std
::
ostream
&
out
)
{
serialize
(
item
.
feat_image
,
out
);
}
inline
friend
void
deserialize
(
very_simple_feature_extractor
&
item
,
std
::
istream
&
in
)
{
deserialize
(
item
.
feat_image
,
in
);
}
inline
friend
void
deserialize
(
very_simple_feature_extractor
&
item
,
std
::
istream
&
in
)
{
deserialize
(
item
.
feat_image
,
in
);
}
void
copy_configuration
(
const
very_simple_feature_extractor
&
item
){}
void
copy_configuration
(
const
very_simple_feature_extractor
&
){}
private:
private:
array2d
<
unsigned
char
>
feat_image
;
array2d
<
unsigned
char
>
feat_image
;
...
...
dlib/test/sequence_labeler.cpp
View file @
a1632e02
...
@@ -85,9 +85,9 @@ namespace
...
@@ -85,9 +85,9 @@ namespace
template
<
typename
EXP
>
template
<
typename
EXP
>
bool
reject_labeling
(
bool
reject_labeling
(
const
std
::
vector
<
sample_type
>&
x
,
const
std
::
vector
<
sample_type
>&
,
const
matrix_exp
<
EXP
>&
y
,
const
matrix_exp
<
EXP
>&
,
unsigned
long
position
unsigned
long
)
const
)
const
{
{
called_rejct_labeling
=
true
;
called_rejct_labeling
=
true
;
...
...
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