Commit 8372b859 authored by Davis King's avatar Davis King

Added a missing assert

parent 4e2ab80e
......@@ -20,7 +20,17 @@ namespace dlib
test_box_overlap (
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() (
const dlib::rectangle& a,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment