From d1493c1a5020995889f0bcb9235ee7709375d86c Mon Sep 17 00:00:00 2001 From: Davis King Date: Wed, 27 Mar 2013 20:21:44 -0400 Subject: [PATCH] Refined this object's interface slightly. --- dlib/image_processing/scan_image_boxes.h | 3 +++ dlib/image_processing/scan_image_boxes_abstract.h | 12 +++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/dlib/image_processing/scan_image_boxes.h b/dlib/image_processing/scan_image_boxes.h index ed211cfb7..196fa8556 100644 --- a/dlib/image_processing/scan_image_boxes.h +++ b/dlib/image_processing/scan_image_boxes.h @@ -71,6 +71,9 @@ namespace dlib const box_generator& bg ); + const box_generator& get_box_generator ( + ) const { return detect_boxes; } + inline void copy_configuration ( const scan_image_boxes& item ); diff --git a/dlib/image_processing/scan_image_boxes_abstract.h b/dlib/image_processing/scan_image_boxes_abstract.h index ed415b6e9..8c4bf6f4d 100644 --- a/dlib/image_processing/scan_image_boxes_abstract.h +++ b/dlib/image_processing/scan_image_boxes_abstract.h @@ -194,13 +194,19 @@ namespace dlib ); /*! ensures - - Let BASE_BG denote the box_generator object used internally for candidate - box generation. Then this function performs: - BASE_BG = bg; + - #get_box_generator() == bg (i.e. this function allows you to configure the parameters of the underlying box generator used by a scan_image_boxes object) !*/ + const box_generator& get_box_generator ( + ) const; + /*! + ensures + - returns the box_generator used by this object to generate candidate + object locations. + !*/ + void copy_configuration ( const scan_image_boxes& item );