Commit da73e4bd authored by Davis King's avatar Davis King

Changed requires clause slightly to increase usability.

parent be31bd47
...@@ -928,7 +928,7 @@ namespace dlib ...@@ -928,7 +928,7 @@ namespace dlib
) )
{ {
// make sure requires clause is not broken // make sure requires clause is not broken
DLIB_ASSERT(thresh > 0 , DLIB_ASSERT(thresh >= 0 ,
"\t object_detector threshold_filter_singular_values()" "\t object_detector threshold_filter_singular_values()"
<< "\n\t Invalid inputs were given to this function." << "\n\t Invalid inputs were given to this function."
<< "\n\t thresh: " << thresh << "\n\t thresh: " << thresh
......
...@@ -66,7 +66,7 @@ namespace dlib ...@@ -66,7 +66,7 @@ namespace dlib
); );
/*! /*!
requires requires
- thresh > 0 - thresh >= 0
- weight_index < detector.num_detectors() - weight_index < detector.num_detectors()
- detector.get_w(weight_index).size() >= detector.get_scanner().get_num_dimensions() - detector.get_w(weight_index).size() >= detector.get_scanner().get_num_dimensions()
(i.e. the detector must have been populated with a HOG filter) (i.e. the detector must have been populated with a HOG filter)
......
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