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
60a1bdc9
Commit
60a1bdc9
authored
Nov 11, 2013
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clarified spec
parent
6401e693
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
38 deletions
+45
-38
scan_fhog_pyramid_abstract.h
dlib/image_processing/scan_fhog_pyramid_abstract.h
+45
-38
No files found.
dlib/image_processing/scan_fhog_pyramid_abstract.h
View file @
60a1bdc9
...
...
@@ -10,6 +10,43 @@
namespace
dlib
{
// ----------------------------------------------------------------------------------------
template
<
typename
Pyramid_type
>
matrix
<
unsigned
char
>
draw_fhog
(
const
object_detector
<
scan_fhog_pyramid
<
Pyramid_type
>
>&
detector
,
const
long
cell_draw_size
=
15
);
/*!
requires
- detector.get_w().size() >= detector.get_scanner().get_num_dimensions()
(i.e. the detector must have been populated with a HOG filter)
ensures
- Converts the HOG filters in the given detector into an image suitable for
display on the screen. In particular, we draw all the HOG cells into a
grayscale image in a way that shows the magnitude and orientation of the
gradient energy in each cell. The resulting image is then returned.
!*/
// ----------------------------------------------------------------------------------------
template
<
typename
Pyramid_type
>
unsigned
long
num_separable_filters
(
const
object_detector
<
scan_fhog_pyramid
<
Pyramid_type
>
>&
detector
);
/*!
requires
- detector.get_w().size() >= detector.get_scanner().get_num_dimensions()
(i.e. the detector must have been populated with a HOG filter)
ensures
- Returns the number of separable filters necessary to represent the HOG
filters in the given detector.
!*/
// ----------------------------------------------------------------------------------------
template
<
...
...
@@ -24,6 +61,14 @@ namespace dlib
compatible interface
INITIAL VALUE
- get_padding() == 1
- get_cell_size() == 8
- get_detection_window_width() == 64
- get_detection_window_height() == 64
- get_max_pyramid_levels() == 1000
- get_min_pyramid_layer_width() == 64
- get_min_pyramid_layer_height() == 64
- get_nuclear_norm_regularization_strength() == 0
WHAT THIS OBJECT REPRESENTS
This object is a tool for running a fixed sized sliding window classifier
...
...
@@ -38,7 +83,6 @@ namespace dlib
IEEE Transactions on Pattern Analysis and Machine Intelligence, Vol. 32, No. 9, Sep. 2010
Since these HOG features have been shown to give superior performance.
THREAD SAFETY
Concurrent access to an instance of this object is not safe and should be
protected by a mutex lock except for the case where you are copying the
...
...
@@ -482,43 +526,6 @@ namespace dlib
provides deserialization support
!*/
// ----------------------------------------------------------------------------------------
template
<
typename
Pyramid_type
>
matrix
<
unsigned
char
>
draw_fhog
(
const
object_detector
<
scan_fhog_pyramid
<
Pyramid_type
>
>&
detector
,
const
long
cell_draw_size
=
15
);
/*!
requires
- detector.get_w().size() >= detector.get_scanner().get_num_dimensions()
(i.e. the detector must have been populated with a HOG filter)
ensures
- Converts the HOG filters in the given detector into an image suitable for
display on the screen. In particular, we draw all the HOG cells into a
grayscale image in a way that shows the magnitude and orientation of the
gradient energy in each cell. The resulting image is then returned.
!*/
// ----------------------------------------------------------------------------------------
template
<
typename
Pyramid_type
>
unsigned
long
num_separable_filters
(
const
object_detector
<
scan_fhog_pyramid
<
Pyramid_type
>
>&
detector
);
/*!
requires
- detector.get_w().size() >= detector.get_scanner().get_num_dimensions()
(i.e. the detector must have been populated with a HOG filter)
ensures
- Returns the number of separable filters necessary to represent the HOG
filters in the given detector.
!*/
// ----------------------------------------------------------------------------------------
}
...
...
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