mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Added a typedef to the object_detector that allows you to find out
what scanner type it is using.
This commit is contained in:
parent
ac2f95505d
commit
d75e747a1d
@ -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 (
|
||||
|
@ -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 (
|
||||
|
Loading…
Reference in New Issue
Block a user