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
60a1bdc9
Commit
60a1bdc9
authored
Nov 11, 2013
by
Davis King
Browse files
clarified spec
parent
6401e693
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
38 deletions
+45
-38
dlib/image_processing/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 @@
...
@@ -10,6 +10,43 @@
namespace
dlib
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
<
template
<
...
@@ -24,6 +61,14 @@ namespace dlib
...
@@ -24,6 +61,14 @@ namespace dlib
compatible interface
compatible interface
INITIAL VALUE
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
WHAT THIS OBJECT REPRESENTS
This object is a tool for running a fixed sized sliding window classifier
This object is a tool for running a fixed sized sliding window classifier
...
@@ -38,7 +83,6 @@ namespace dlib
...
@@ -38,7 +83,6 @@ namespace dlib
IEEE Transactions on Pattern Analysis and Machine Intelligence, Vol. 32, No. 9, Sep. 2010
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.
Since these HOG features have been shown to give superior performance.
THREAD SAFETY
THREAD SAFETY
Concurrent access to an instance of this object is not safe and should be
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
protected by a mutex lock except for the case where you are copying the
...
@@ -482,43 +526,6 @@ namespace dlib
...
@@ -482,43 +526,6 @@ namespace dlib
provides deserialization support
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