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
f1292139
Commit
f1292139
authored
Apr 22, 2013
by
Davis King
Browse files
A minor change to avoid compiler warnings.
parent
c756dfc7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
examples/learning_to_track_ex.cpp
examples/learning_to_track_ex.cpp
+2
-2
examples/one_class_classifiers_ex.cpp
examples/one_class_classifiers_ex.cpp
+1
-1
No files found.
examples/learning_to_track_ex.cpp
View file @
f1292139
...
...
@@ -161,7 +161,7 @@ void initialize_object_properties()
// So here is our function that samples a detection from our simulated sensor. You tell it
// what object you want to sample a detection from and it returns a detection from that
// object.
detection
sample_detection_from_sensor
(
unsigned
long
object_id
)
detection
sample_detection_from_sensor
(
long
object_id
)
{
DLIB_CASSERT
(
object_id
<
num_objects
,
"You can't ask to sample a detection from an object that doesn't exist."
);
...
...
@@ -230,7 +230,7 @@ track_history make_random_tracking_data_for_training()
// ----------------------------------------------------------------------------------------
std
::
vector
<
detection
>
make_random_detections
(
unsigned
long
num_dets
)
std
::
vector
<
detection
>
make_random_detections
(
long
num_dets
)
{
/*
Finally, when we test the tracker we learned we will need to sample regular old
...
...
examples/one_class_classifiers_ex.cpp
View file @
f1292139
...
...
@@ -222,7 +222,7 @@ int main()
// the algorithms have identified the sinc() curve. The hotter the pixel looks, the
// larger the value coming out of the decision function and therefore the more "normal"
// it is according to the classifier.
const
double
size
=
500
;
const
long
size
=
500
;
array2d
<
double
>
img1
(
size
,
size
);
array2d
<
double
>
img2
(
size
,
size
);
for
(
long
r
=
0
;
r
<
img1
.
nr
();
++
r
)
...
...
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