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
d75e747a
Commit
d75e747a
authored
Jul 18, 2014
by
Davis King
Browse files
Added a typedef to the object_detector that allows you to find out
what scanner type it is using.
parent
ac2f9550
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
dlib/image_processing/object_detector.h
dlib/image_processing/object_detector.h
+2
-1
dlib/image_processing/object_detector_abstract.h
dlib/image_processing/object_detector_abstract.h
+4
-3
No files found.
dlib/image_processing/object_detector.h
View file @
d75e747a
...
...
@@ -67,11 +67,12 @@ namespace dlib
// ----------------------------------------------------------------------------------------
template
<
typename
image_scanner_type
typename
image_scanner_type
_
>
class
object_detector
{
public:
typedef
image_scanner_type_
image_scanner_type
;
typedef
typename
image_scanner_type
::
feature_vector_type
feature_vector_type
;
object_detector
(
...
...
dlib/image_processing/object_detector_abstract.h
View file @
d75e747a
...
...
@@ -30,13 +30,13 @@ namespace dlib
// ----------------------------------------------------------------------------------------
template
<
typename
image_scanner_type
typename
image_scanner_type
_
>
class
object_detector
{
/*!
REQUIREMENTS ON image_scanner_type
image_scanner_type must be an implementation of
REQUIREMENTS ON image_scanner_type
_
image_scanner_type
_
must be an implementation of
dlib/image_processing/scan_image_pyramid_abstract.h or
dlib/image_processing/scan_fhog_pyramid.h or
dlib/image_processing/scan_image_custom.h or
...
...
@@ -65,6 +65,7 @@ namespace dlib
avoids unnecessarily loading the same image into the scanner multiple times.
!*/
public:
typedef
image_scanner_type_
image_scanner_type
;
typedef
typename
image_scanner_type
::
feature_vector_type
feature_vector_type
;
object_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