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
0f1e9f99
Commit
0f1e9f99
authored
Apr 08, 2016
by
Fm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed corellation_tracker constructor
parent
d1efcd94
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
16 deletions
+15
-16
correlation_tracker.h
dlib/image_processing/correlation_tracker.h
+11
-11
correlation_tracker_abstract.h
dlib/image_processing/correlation_tracker_abstract.h
+4
-5
No files found.
dlib/image_processing/correlation_tracker.h
View file @
0f1e9f99
...
@@ -19,18 +19,20 @@ namespace dlib
...
@@ -19,18 +19,20 @@ namespace dlib
{
{
public
:
public
:
correlation_tracker
(
unsigned
long
filter_size
=
128
/
2
,
// must be a power of 2
explicit
correlation_tracker
(
unsigned
long
filter_size
=
6
,
unsigned
long
num_scale_levels
=
32
,
// must be a power of 2
unsigned
long
num_scale_levels
=
5
,
unsigned
long
scale_window_size
=
23
,
unsigned
long
scale_window_size
=
23
,
double
regularizer_space
=
0
.
001
,
double
regularizer_space
=
0
.
001
,
double
nu_space
=
0
.
025
,
double
nu_space
=
0
.
025
,
double
regularizer_scale
=
0
.
001
,
double
regularizer_scale
=
0
.
001
,
double
nu_scale
=
0
.
025
double
nu_scale
=
0
.
025
,
double
scale_pyramid_alpha
=
1
.
020
)
)
:
filter_size
(
filter_size
),
num_scale_levels
(
num_scale_levels
),
:
filter_size
(
1
<<
filter_size
),
num_scale_levels
(
1
<<
num_scale_levels
),
scale_window_size
(
scale_window_size
),
scale_window_size
(
scale_window_size
),
regularizer_space
(
regularizer_space
),
nu_space
(
nu_space
),
regularizer_space
(
regularizer_space
),
nu_space
(
nu_space
),
regularizer_scale
(
regularizer_scale
),
nu_scale
(
nu_scale
)
regularizer_scale
(
regularizer_scale
),
nu_scale
(
nu_scale
),
scale_pyramid_alpha
(
scale_pyramid_alpha
)
{
{
// Create the cosine mask used for space filtering.
// Create the cosine mask used for space filtering.
mask
=
make_cosine_mask
();
mask
=
make_cosine_mask
();
...
@@ -88,10 +90,10 @@ namespace dlib
...
@@ -88,10 +90,10 @@ namespace dlib
unsigned
long
get_filter_size
(
unsigned
long
get_filter_size
(
)
const
{
return
filter_size
;
}
// must be power of 2
)
const
{
return
filter_size
;
}
unsigned
long
get_num_scale_levels
(
unsigned
long
get_num_scale_levels
(
)
const
{
return
num_scale_levels
;
}
// must be power of 2
)
const
{
return
num_scale_levels
;
}
unsigned
long
get_scale_window_size
(
unsigned
long
get_scale_window_size
(
)
const
{
return
scale_window_size
;
}
)
const
{
return
scale_window_size
;
}
...
@@ -113,10 +115,7 @@ namespace dlib
...
@@ -113,10 +115,7 @@ namespace dlib
}
}
double
get_scale_pyramid_alpha
(
double
get_scale_pyramid_alpha
(
)
const
)
const
{
return
scale_pyramid_alpha
;
}
{
return
1
.
020
;
}
template
<
typename
image_type
>
template
<
typename
image_type
>
...
@@ -396,6 +395,7 @@ namespace dlib
...
@@ -396,6 +395,7 @@ namespace dlib
double
nu_space
;
double
nu_space
;
double
regularizer_scale
;
double
regularizer_scale
;
double
nu_scale
;
double
nu_scale
;
double
scale_pyramid_alpha
;
};
};
}
}
...
...
dlib/image_processing/correlation_tracker_abstract.h
View file @
0f1e9f99
...
@@ -25,18 +25,17 @@ namespace dlib
...
@@ -25,18 +25,17 @@ namespace dlib
public
:
public
:
correlation_tracker
(
unsigned
long
filter_size
=
128
/
2
,
explicit
correlation_tracker
(
unsigned
long
filter_size
=
6
,
unsigned
long
num_scale_levels
=
32
,
unsigned
long
num_scale_levels
=
5
,
unsigned
long
scale_window_size
=
23
,
unsigned
long
scale_window_size
=
23
,
double
regularizer_space
=
0
.
001
,
double
regularizer_space
=
0
.
001
,
double
nu_space
=
0
.
025
,
double
nu_space
=
0
.
025
,
double
regularizer_scale
=
0
.
001
,
double
regularizer_scale
=
0
.
001
,
double
nu_scale
=
0
.
025
double
nu_scale
=
0
.
025
,
double
scale_pyramid_alpha
=
1
.
020
);
);
/*!
/*!
requires
requires
- filter_size should be a power of 2
- num_scale_levels should be a power of 2
- p.is_empty() == false
- p.is_empty() == false
ensures
ensures
- Initializes correlation_tracker. Higher value of filter_size and
- Initializes correlation_tracker. Higher value of filter_size and
...
...
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