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
a7d236c0
Commit
a7d236c0
authored
Feb 20, 2014
by
Davis King
Browse files
Added a guarantee that tracks won't be asked for their feature vector until
they are updated at least once with a detection.
parent
3c6cdf50
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
dlib/svm/structural_track_association_trainer.h
dlib/svm/structural_track_association_trainer.h
+1
-0
dlib/svm/track_association_function_abstract.h
dlib/svm/track_association_function_abstract.h
+2
-0
No files found.
dlib/svm/structural_track_association_trainer.h
View file @
a7d236c0
...
@@ -222,6 +222,7 @@ namespace dlib
...
@@ -222,6 +222,7 @@ namespace dlib
if
(
samples
[
i
][
j
].
size
()
>
0
)
if
(
samples
[
i
][
j
].
size
()
>
0
)
{
{
track_type
new_track
;
track_type
new_track
;
new_track
.
update_track
(
samples
[
i
][
j
][
0
].
first
);
typename
track_type
::
feature_vector_type
feats
;
typename
track_type
::
feature_vector_type
feats
;
new_track
.
get_similarity_features
(
samples
[
i
][
j
][
0
].
first
,
feats
);
new_track
.
get_similarity_features
(
samples
[
i
][
j
][
0
].
first
,
feats
);
return
feats
.
size
();
return
feats
.
size
();
...
...
dlib/svm/track_association_function_abstract.h
View file @
a7d236c0
...
@@ -58,6 +58,8 @@ namespace dlib
...
@@ -58,6 +58,8 @@ namespace dlib
feature_vector_type
&
feats
feature_vector_type
&
feats
)
const
;
)
const
;
/*!
/*!
requires
- update_track() has been called on this track at least once.
ensures
ensures
- #feats == A feature vector that contains information describing how
- #feats == A feature vector that contains information describing how
likely it is that det is a detection from the object corresponding to
likely it is that det is a detection from the object corresponding to
...
...
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