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
ea2d8ddc
Commit
ea2d8ddc
authored
Aug 25, 2012
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor interface cleanup
parent
048af3c7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
22 deletions
+11
-22
object_detector.h
dlib/image_processing/object_detector.h
+7
-19
object_detector_abstract.h
dlib/image_processing/object_detector_abstract.h
+4
-3
No files found.
dlib/image_processing/object_detector.h
View file @
ea2d8ddc
...
...
@@ -4,7 +4,6 @@
#define DLIB_OBJECT_DeTECTOR_H__
#include "object_detector_abstract.h"
#include "../matrix.h"
#include "../geometry.h"
#include <vector>
#include "box_overlap_testing.h"
...
...
@@ -21,6 +20,8 @@ namespace dlib
class
object_detector
{
public
:
typedef
typename
image_scanner_type
::
feature_vector_type
feature_vector_type
;
object_detector
(
);
...
...
@@ -31,11 +32,11 @@ namespace dlib
object_detector
(
const
image_scanner_type
&
scanner_
,
const
overlap_tester_type
&
overlap_tester_
,
const
matrix
<
double
,
0
,
1
>
&
w_
const
feature_vector_type
&
w_
);
const
matrix
<
double
,
0
,
1
>
&
get_w
(
)
const
;
const
feature_vector_type
&
get_w
(
)
const
{
return
w
;
}
const
overlap_tester_type
&
get_overlap_tester
(
)
const
;
...
...
@@ -104,7 +105,7 @@ namespace dlib
}
overlap_tester_type
boxes_overlap
;
matrix
<
double
,
0
,
1
>
w
;
feature_vector_type
w
;
image_scanner_type
scanner
;
};
...
...
@@ -178,7 +179,7 @@ namespace dlib
object_detector
(
const
image_scanner_type
&
scanner_
,
const
overlap_tester_type
&
overlap_tester
,
const
matrix
<
double
,
0
,
1
>
&
w_
const
feature_vector_type
&
w_
)
:
boxes_overlap
(
overlap_tester
),
w
(
w_
)
...
...
@@ -288,19 +289,6 @@ namespace dlib
}
}
// ----------------------------------------------------------------------------------------
template
<
typename
image_scanner_type
,
typename
overlap_tester_type
>
const
matrix
<
double
,
0
,
1
>&
object_detector
<
image_scanner_type
,
overlap_tester_type
>::
get_w
(
)
const
{
return
w
;
}
// ----------------------------------------------------------------------------------------
template
<
...
...
dlib/image_processing/object_detector_abstract.h
View file @
ea2d8ddc
...
...
@@ -3,7 +3,6 @@
#undef DLIB_OBJECT_DeTECTOR_ABSTRACT_H__
#ifdef DLIB_OBJECT_DeTECTOR_ABSTRACT_H__
#include "../matrix.h"
#include "../geometry.h"
#include <vector>
#include "box_overlap_testing_abstract.h"
...
...
@@ -37,6 +36,8 @@ namespace dlib
non-max suppression on the output of the scan_image_pyramid object.
!*/
public
:
typedef
typename
image_scanner_type
::
feature_vector_type
feature_vector_type
;
object_detector
(
);
/*!
...
...
@@ -59,7 +60,7 @@ namespace dlib
object_detector
(
const
image_scanner_type
&
scanner
,
const
overlap_tester_type
&
overlap_tester
,
const
matrix
<
double
,
0
,
1
>
&
w
const
feature_vector_type
&
w
);
/*!
requires
...
...
@@ -81,7 +82,7 @@ namespace dlib
I.e. the copy is done using copy_configuration())
!*/
const
matrix
<
double
,
0
,
1
>
&
get_w
(
const
feature_vector_type
&
get_w
(
)
const
;
/*!
ensures
...
...
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