Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
7f2e28c4
Commit
7f2e28c4
authored
Feb 03, 2015
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added the correlation_tracker.
parent
6adfdac9
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
109 additions
and
0 deletions
+109
-0
image_processing.h
dlib/image_processing.h
+1
-0
correlation_tracker.h
dlib/image_processing/correlation_tracker.h
+0
-0
correlation_tracker_abstract.h
dlib/image_processing/correlation_tracker_abstract.h
+108
-0
No files found.
dlib/image_processing.h
View file @
7f2e28c4
...
...
@@ -15,6 +15,7 @@
#include "image_processing/remove_unobtainable_rectangles.h"
#include "image_processing/scan_fhog_pyramid.h"
#include "image_processing/shape_predictor.h"
#include "image_processing/correlation_tracker.h"
#endif // DLIB_IMAGE_PROCESSInG_H_h_
...
...
dlib/image_processing/correlation_tracker.h
0 → 100644
View file @
7f2e28c4
This diff is collapsed.
Click to expand it.
dlib/image_processing/correlation_tracker_abstract.h
0 → 100644
View file @
7f2e28c4
// Copyright (C) 2015 Davis E. King (davis@dlib.net)
// License: Boost Software License See LICENSE.txt for the full license.
#undef DLIB_CORRELATION_TrACKER_ABSTRACT_H_
#ifdef DLIB_CORRELATION_TrACKER_ABSTRACT_H_
#include "../geometry/drectangle_abstract.h"
namespace
dlib
{
// ----------------------------------------------------------------------------------------
class
correlation_tracker
{
/*!
WHAT THIS OBJECT REPRESENTS
This is a tool for tracking moving objects in a video stream. You give it
the bounding box of an object in the first frame and it attempts to track the
object in the box from frame to frame.
This tool is an implementation of the method described in the following paper:
Danelljan, Martin, et al. "Accurate scale estimation for robust visual
tracking." Proceedings of the British Machine Vision Conference BMVC. 2014.
!*/
public
:
correlation_tracker
(
);
/*!
ensures
- #get_position().is_empty() == true
!*/
template
<
typename
image_type
>
void
start_track
(
const
image_type
&
img
,
const
drectangle
&
p
);
/*!
requires
- image_type == an image object that implements the interface defined in
dlib/image_processing/generic_image.h
- p.is_empty() == false
ensures
- This object will start tracking the thing inside the bounding box in the
given image. That is, if you call update() with subsequent video frames
then it will try to keep track of the position of the object inside p.
- #get_position() == p
!*/
drectangle
get_position
(
)
const
;
/*!
ensures
- returns the predicted position of the object under track.
!*/
template
<
typename
image_type
>
double
update
(
const
image_type
&
img
,
const
drectangle
&
guess
);
/*!
requires
- image_type == an image object that implements the interface defined in
dlib/image_processing/generic_image.h
- get_position().is_empty() == false
(i.e. you must have started tracking by calling start_track())
ensures
- When searching for the object in img, we search in the area around the
provided guess.
- #get_position() == the new predicted location of the object in img. This
location will be a copy of guess that has been translated and scaled
appropriately based on the content of img so that it, hopefully, bounds
the object in img.
- Returns the peak to side-lobe ratio. This is a number that measures how
confident the tracker is that the object is inside #get_position().
Larger values indicate higher confidence.
!*/
template
<
typename
image_type
>
double
update
(
const
image_type
&
img
);
/*!
requires
- image_type == an image object that implements the interface defined in
dlib/image_processing/generic_image.h
- get_position().is_empty() == false
(i.e. you must have started tracking by calling start_track())
ensures
- performs: return update(img, get_position())
!*/
};
}
#endif // DLIB_CORRELATION_TrACKER_ABSTRACT_H_
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