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
651df561
Commit
651df561
authored
Sep 07, 2011
by
Davis King
Browse files
filled in the spec
parent
d607a8e5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
11 deletions
+26
-11
dlib/image_processing/object_detector_abstract.h
dlib/image_processing/object_detector_abstract.h
+26
-11
No files found.
dlib/image_processing/object_detector_abstract.h
View file @
651df561
...
...
@@ -19,8 +19,22 @@ namespace dlib
class
object_detector
{
/*!
WHAT THIS OBJECT REPRESENTS
REQUIREMENTS ON overlap_tester_type
overlap_tester_type must be a type with an interface compatible
with test_box_overlap.
REQUIREMENTS ON image_scanner_type
image_scanner_type must be an instance of the scan_image_pyramid
templated defined in dlib/image_processing/scan_image_pyramid_abstract.h
or an object with a compatible interface.
WHAT THIS OBJECT REPRESENTS
This object is a tool for detecting the positions of objects in
an image. In particular, it is a simple container to aggregate
an instance of the scan_image_pyramid class, the weight vector
needed by scan_image_pyramid, and finally an instance of
test_box_overlap. The test_box_overlap object is used to perform
non-max suppression on the output of the scan_image_pyramid object.
!*/
public:
object_detector
(
...
...
@@ -40,21 +54,23 @@ namespace dlib
!*/
object_detector
(
const
image_scanner_type
&
scanner
_
,
const
overlap_tester_type
&
overlap_tester
_
,
const
matrix
<
double
,
0
,
1
>&
w
_
const
image_scanner_type
&
scanner
,
const
overlap_tester_type
&
overlap_tester
,
const
matrix
<
double
,
0
,
1
>&
w
);
/*!
requires
- w
_
.size() == scanner
_
.get_num_dimensions() + 1
- scanner
_
.num_detection_templates() > 0
- w.size() == scanner.get_num_dimensions() + 1
- scanner.num_detection_templates() > 0
ensures
- Initializes this detector... TODO describe
- When the operator() member function is called it will
invoke scanner.detect(w,dets,w(w.size()-1)), suppress
overlapping detections, and then report the results.
- when #*this is used to detect objects, the set of
output detections will never contain any overlaps
with respect to overlap_tester
_
. That is,
for all
with respect to overlap_tester. That is, for all
pairs of returned detections A and B, we will always
have: overlap_tester
_
(A,B) == false
have: overlap_tester(A,B) == false
!*/
object_detector
&
operator
=
(
...
...
@@ -74,8 +90,7 @@ namespace dlib
)
const
;
/*!
requires
- image_type == is an implementation of array2d/array2d_kernel_abstract.h
- pixel_traits<typename image_type::type>::has_alpha == false
- img == an object which can be accepted by image_scanner_type::load()
ensures
- performs object detection on the given image and returns a
vector which indicates the locations of all detected objects.
...
...
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