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
12e6f8ee
Commit
12e6f8ee
authored
Sep 07, 2011
by
Davis King
Browse files
Added some comments. Still need to complete the spec.
parent
651df561
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
2 deletions
+33
-2
dlib/svm/structural_svm_object_detection_problem_abstract.h
dlib/svm/structural_svm_object_detection_problem_abstract.h
+33
-2
No files found.
dlib/svm/structural_svm_object_detection_problem_abstract.h
View file @
12e6f8ee
...
@@ -20,22 +20,53 @@ namespace dlib
...
@@ -20,22 +20,53 @@ namespace dlib
class
structural_svm_object_detection_problem
:
public
structural_svm_problem_threaded
<
matrix
<
double
,
0
,
1
>
>
,
class
structural_svm_object_detection_problem
:
public
structural_svm_problem_threaded
<
matrix
<
double
,
0
,
1
>
>
,
noncopyable
noncopyable
{
{
/*!
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.
REQUIREMENTS ON overlap_tester_type
overlap_tester_type must be a type with an interface compatible
with test_box_overlap.
REQUIREMENTS ON image_array_type
image_array_type must be a dlib/array/array_kernel_abstract.h object
which contains object types which be accepted by image_scanner_type::load().
WHAT THIS OBJECT REPRESENTS
This object is a tool for learning the parameter vector needed to use
a scan_image_pyramid object.
!*/
public:
public:
structural_svm_object_detection_problem
(
structural_svm_object_detection_problem
(
const
image_scanner_type
&
scanner
,
const
image_scanner_type
&
scanner
,
const
overlap_tester_type
&
overlap_tester
,
const
overlap_tester_type
&
overlap_tester
,
const
image_array_type
&
images
_
,
const
image_array_type
&
images
,
const
std
::
vector
<
std
::
vector
<
rectangle
>
>&
rects
_
,
const
std
::
vector
<
std
::
vector
<
rectangle
>
>&
rects
,
unsigned
long
num_threads
=
2
unsigned
long
num_threads
=
2
);
);
/*!
requires
- images.size() == rects.size()
- scanner.num_detection_templates() > 0
!*/
void
set_overlap_eps
(
void
set_overlap_eps
(
double
eps
double
eps
);
);
/*!
requires
- eps > 0
ensures
- #get_overlap_eps() == eps
!*/
double
get_overlap_eps
(
double
get_overlap_eps
(
)
const
;
)
const
;
/*!
!*/
};
};
...
...
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