mirror of https://github.com/davisking/dlib.git
Changed requires clause slightly to increase usability.
This commit is contained in:
parent
be31bd4779
commit
da73e4bdd4
|
@ -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
|
||||||
);
|
);
|
||||||
/*!
|
/*!
|
||||||
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)
|
||||||
|
|
Loading…
Reference in New Issue