Commit d75e747a authored by Davis King's avatar Davis King

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

what scanner type it is using.
parent ac2f9550
...@@ -67,11 +67,12 @@ namespace dlib ...@@ -67,11 +67,12 @@ namespace dlib
// ---------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------
template < template <
typename image_scanner_type typename image_scanner_type_
> >
class object_detector class object_detector
{ {
public: public:
typedef image_scanner_type_ image_scanner_type;
typedef typename image_scanner_type::feature_vector_type feature_vector_type; typedef typename image_scanner_type::feature_vector_type feature_vector_type;
object_detector ( object_detector (
......
...@@ -30,13 +30,13 @@ namespace dlib ...@@ -30,13 +30,13 @@ namespace dlib
// ---------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------
template < template <
typename image_scanner_type typename image_scanner_type_
> >
class object_detector class object_detector
{ {
/*! /*!
REQUIREMENTS ON image_scanner_type REQUIREMENTS ON image_scanner_type_
image_scanner_type must be an implementation of image_scanner_type_ must be an implementation of
dlib/image_processing/scan_image_pyramid_abstract.h or dlib/image_processing/scan_image_pyramid_abstract.h or
dlib/image_processing/scan_fhog_pyramid.h or dlib/image_processing/scan_fhog_pyramid.h or
dlib/image_processing/scan_image_custom.h or dlib/image_processing/scan_image_custom.h or
...@@ -65,6 +65,7 @@ namespace dlib ...@@ -65,6 +65,7 @@ namespace dlib
avoids unnecessarily loading the same image into the scanner multiple times. avoids unnecessarily loading the same image into the scanner multiple times.
!*/ !*/
public: public:
typedef image_scanner_type_ image_scanner_type;
typedef typename image_scanner_type::feature_vector_type feature_vector_type; typedef typename image_scanner_type::feature_vector_type feature_vector_type;
object_detector ( object_detector (
......
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