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