From da73e4bdd4d3f2af2a08dd2ded09911e12f11d62 Mon Sep 17 00:00:00 2001 From: Davis King Date: Sun, 8 Dec 2013 10:50:13 -0500 Subject: [PATCH] Changed requires clause slightly to increase usability. --- dlib/image_processing/scan_fhog_pyramid.h | 2 +- dlib/image_processing/scan_fhog_pyramid_abstract.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlib/image_processing/scan_fhog_pyramid.h b/dlib/image_processing/scan_fhog_pyramid.h index c81b8cf77..e6546220a 100644 --- a/dlib/image_processing/scan_fhog_pyramid.h +++ b/dlib/image_processing/scan_fhog_pyramid.h @@ -928,7 +928,7 @@ namespace dlib ) { // make sure requires clause is not broken - DLIB_ASSERT(thresh > 0 , + DLIB_ASSERT(thresh >= 0 , "\t object_detector threshold_filter_singular_values()" << "\n\t Invalid inputs were given to this function." << "\n\t thresh: " << thresh diff --git a/dlib/image_processing/scan_fhog_pyramid_abstract.h b/dlib/image_processing/scan_fhog_pyramid_abstract.h index 3b70adfc9..85ef89221 100644 --- a/dlib/image_processing/scan_fhog_pyramid_abstract.h +++ b/dlib/image_processing/scan_fhog_pyramid_abstract.h @@ -66,7 +66,7 @@ namespace dlib ); /*! requires - - thresh > 0 + - thresh >= 0 - weight_index < detector.num_detectors() - detector.get_w(weight_index).size() >= detector.get_scanner().get_num_dimensions() (i.e. the detector must have been populated with a HOG filter)