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
048af3c7
Commit
048af3c7
authored
Aug 24, 2012
by
Davis King
Browse files
Added missing requirements
parent
c4c8535d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
1 deletion
+6
-1
dlib/svm/structural_object_detection_trainer.h
dlib/svm/structural_object_detection_trainer.h
+3
-1
dlib/svm/structural_object_detection_trainer_abstract.h
dlib/svm/structural_object_detection_trainer_abstract.h
+1
-0
dlib/svm/structural_svm_object_detection_problem.h
dlib/svm/structural_svm_object_detection_problem.h
+1
-0
dlib/svm/structural_svm_object_detection_problem_abstract.h
dlib/svm/structural_svm_object_detection_problem_abstract.h
+1
-0
No files found.
dlib/svm/structural_object_detection_trainer.h
View file @
048af3c7
...
@@ -262,13 +262,15 @@ namespace dlib
...
@@ -262,13 +262,15 @@ namespace dlib
{
{
for
(
unsigned
long
j
=
0
;
j
<
truth_object_detections
[
i
].
size
();
++
j
)
for
(
unsigned
long
j
=
0
;
j
<
truth_object_detections
[
i
].
size
();
++
j
)
{
{
DLIB_ASSERT
(
truth_object_detections
[
i
][
j
].
movable_parts
.
size
()
==
get_scanner
().
get_num_movable_components_per_detection_template
(),
DLIB_ASSERT
(
truth_object_detections
[
i
][
j
].
movable_parts
.
size
()
==
get_scanner
().
get_num_movable_components_per_detection_template
()
&&
all_parts_in_rect
(
truth_object_detections
[
i
][
j
])
==
true
,
"
\t
trained_function_type structural_object_detection_trainer::train()"
"
\t
trained_function_type structural_object_detection_trainer::train()"
<<
"
\n\t
invalid inputs were given to this function"
<<
"
\n\t
invalid inputs were given to this function"
<<
"
\n\t
truth_object_detections["
<<
i
<<
"]["
<<
j
<<
"].movable_parts.size(): "
<<
<<
"
\n\t
truth_object_detections["
<<
i
<<
"]["
<<
j
<<
"].movable_parts.size(): "
<<
truth_object_detections
[
i
][
j
].
movable_parts
.
size
()
truth_object_detections
[
i
][
j
].
movable_parts
.
size
()
<<
"
\n\t
get_scanner().get_num_movable_components_per_detection_template(): "
<<
<<
"
\n\t
get_scanner().get_num_movable_components_per_detection_template(): "
<<
get_scanner
().
get_num_movable_components_per_detection_template
()
get_scanner
().
get_num_movable_components_per_detection_template
()
<<
"
\n\t
all_parts_in_rect(truth_object_detections["
<<
i
<<
"]["
<<
j
<<
"]): "
<<
all_parts_in_rect
(
truth_object_detections
[
i
][
j
])
);
);
}
}
}
}
...
...
dlib/svm/structural_object_detection_trainer_abstract.h
View file @
048af3c7
...
@@ -296,6 +296,7 @@ namespace dlib
...
@@ -296,6 +296,7 @@ namespace dlib
(also, image_array_type must be an implementation of dlib/array/array_kernel_abstract.h)
(also, image_array_type must be an implementation of dlib/array/array_kernel_abstract.h)
- for all valid i, j:
- for all valid i, j:
- truth_object_detections[i][j].movable_parts.size() == get_scanner().get_num_movable_components_per_detection_template()
- truth_object_detections[i][j].movable_parts.size() == get_scanner().get_num_movable_components_per_detection_template()
- all_parts_in_rect(truth_object_detections[i][j]) == true
ensures
ensures
- Uses the structural_svm_object_detection_problem to train an object_detector
- Uses the structural_svm_object_detection_problem to train an object_detector
on the given images and truth_object_detections.
on the given images and truth_object_detections.
...
...
dlib/svm/structural_svm_object_detection_problem.h
View file @
048af3c7
...
@@ -70,6 +70,7 @@ namespace dlib
...
@@ -70,6 +70,7 @@ namespace dlib
truth_object_detections
[
i
][
j
].
movable_parts
.
size
()
truth_object_detections
[
i
][
j
].
movable_parts
.
size
()
<<
"
\n\t
scanner.get_num_movable_components_per_detection_template(): "
<<
<<
"
\n\t
scanner.get_num_movable_components_per_detection_template(): "
<<
scanner
.
get_num_movable_components_per_detection_template
()
scanner
.
get_num_movable_components_per_detection_template
()
<<
"
\n\t
all_parts_in_rect(truth_object_detections["
<<
i
<<
"]["
<<
j
<<
"]): "
<<
all_parts_in_rect
(
truth_object_detections
[
i
][
j
])
);
);
}
}
}
}
...
...
dlib/svm/structural_svm_object_detection_problem_abstract.h
View file @
048af3c7
...
@@ -92,6 +92,7 @@ namespace dlib
...
@@ -92,6 +92,7 @@ namespace dlib
- scanner.load(images[0]) must be a valid expression.
- scanner.load(images[0]) must be a valid expression.
- for all valid i, j:
- for all valid i, j:
- truth_object_detections[i][j].movable_rects.size() == scanner.get_num_movable_components_per_detection_template()
- truth_object_detections[i][j].movable_rects.size() == scanner.get_num_movable_components_per_detection_template()
- all_parts_in_rect(truth_object_detections[i][j]) == true
ensures
ensures
- This object attempts to learn a mapping from the given images to the
- This object attempts to learn a mapping from the given images to the
object locations given in truth_object_detections. In particular, it attempts to
object locations given in truth_object_detections. In particular, it attempts to
...
...
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