Added a typedef to the object_detector that allows you to find out

what scanner type it is using.
This commit is contained in:
Davis King 2014-07-18 22:22:31 -04:00
parent ac2f95505d
commit d75e747a1d
2 changed files with 6 additions and 4 deletions

View File

@ -67,11 +67,12 @@ namespace dlib
// ----------------------------------------------------------------------------------------
template <
typename image_scanner_type
typename image_scanner_type_
>
class object_detector
{
public:
typedef image_scanner_type_ image_scanner_type;
typedef typename image_scanner_type::feature_vector_type feature_vector_type;
object_detector (

View File

@ -30,13 +30,13 @@ namespace dlib
// ----------------------------------------------------------------------------------------
template <
typename image_scanner_type
typename image_scanner_type_
>
class object_detector
{
/*!
REQUIREMENTS ON image_scanner_type
image_scanner_type must be an implementation of
REQUIREMENTS ON image_scanner_type_
image_scanner_type_ must be an implementation of
dlib/image_processing/scan_image_pyramid_abstract.h or
dlib/image_processing/scan_fhog_pyramid.h or
dlib/image_processing/scan_image_custom.h or
@ -65,6 +65,7 @@ namespace dlib
avoids unnecessarily loading the same image into the scanner multiple times.
!*/
public:
typedef image_scanner_type_ image_scanner_type;
typedef typename image_scanner_type::feature_vector_type feature_vector_type;
object_detector (