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
ae0c81bc
Commit
ae0c81bc
authored
Sep 08, 2011
by
Davis King
Browse files
Added missing assert
parent
5e7d14f4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
dlib/image_processing/scan_image_pyramid.h
dlib/image_processing/scan_image_pyramid.h
+13
-0
No files found.
dlib/image_processing/scan_image_pyramid.h
View file @
ae0c81bc
...
@@ -556,6 +556,19 @@ namespace dlib
...
@@ -556,6 +556,19 @@ namespace dlib
std
::
vector
<
rectangle
>&
mapped_rects
std
::
vector
<
rectangle
>&
mapped_rects
)
const
)
const
{
{
// make sure requires clause is not broken
DLIB_ASSERT
(
get_num_detection_templates
()
>
0
&&
is_loaded_with_image
()
&&
psi
.
size
()
>=
get_num_dimensions
(),
"
\t
void scan_image_pyramid::get_feature_vector()"
<<
"
\n\t
Invalid inputs were given to this function "
<<
"
\n\t
get_num_detection_templates(): "
<<
get_num_detection_templates
()
<<
"
\n\t
is_loaded_with_image(): "
<<
is_loaded_with_image
()
<<
"
\n\t
psi.size(): "
<<
psi
.
size
()
<<
"
\n\t
get_num_dimensions(): "
<<
get_num_dimensions
()
<<
"
\n\t
this: "
<<
this
);
psi
=
0
;
psi
=
0
;
mapped_rects
.
clear
();
mapped_rects
.
clear
();
...
...
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