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
8372b859
Commit
8372b859
authored
Sep 08, 2011
by
Davis King
Browse files
Added a missing assert
parent
4e2ab80e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
dlib/image_processing/box_overlap_testing.h
dlib/image_processing/box_overlap_testing.h
+11
-1
No files found.
dlib/image_processing/box_overlap_testing.h
View file @
8372b859
...
@@ -20,7 +20,17 @@ namespace dlib
...
@@ -20,7 +20,17 @@ namespace dlib
test_box_overlap
(
test_box_overlap
(
double
overlap_thresh_
double
overlap_thresh_
)
:
overlap_thresh
(
overlap_thresh_
)
{}
)
:
overlap_thresh
(
overlap_thresh_
)
{
// make sure requires clause is not broken
DLIB_ASSERT
(
0
<=
overlap_thresh
&&
overlap_thresh
<=
1
,
"
\t
test_box_overlap::test_box_overlap(overlap_thresh)"
<<
"
\n\t
Invalid inputs were given to this function "
<<
"
\n\t
overlap_thresh: "
<<
overlap_thresh
<<
"
\n\t
this: "
<<
this
);
}
bool
operator
()
(
bool
operator
()
(
const
dlib
::
rectangle
&
a
,
const
dlib
::
rectangle
&
a
,
...
...
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