Added some useful typedefs to this object.

This commit is contained in:
Davis King 2011-12-26 10:28:08 -05:00
parent 2dcc0253ac
commit 1fe548f32f
2 changed files with 7 additions and 3 deletions

View File

@ -17,12 +17,14 @@ namespace dlib
template <
typename feature_extractor,
typename hash_function_type = projection_hash
typename hash_function_type_ = projection_hash
>
class hashed_feature_image : noncopyable
{
public:
typedef feature_extractor feature_extractor_type;
typedef hash_function_type_ hash_function_type;
typedef std::vector<std::pair<unsigned int,double> > descriptor_type;

View File

@ -15,7 +15,7 @@ namespace dlib
template <
typename feature_extractor,
typename hash_function_type = projection_hash
typename hash_function_type_ = projection_hash
>
class hashed_feature_image : noncopyable
{
@ -23,7 +23,7 @@ namespace dlib
REQUIREMENTS ON feature_extractor
- must be an object with an interface compatible with dlib::hog_image
REQUIREMENTS ON hash_function_type
REQUIREMENTS ON hash_function_type_
- must be an object with an interface compatible with projection_hash
INITIAL VALUE
@ -53,6 +53,8 @@ namespace dlib
public:
typedef feature_extractor feature_extractor_type;
typedef hash_function_type_ hash_function_type;
typedef std::vector<std::pair<unsigned int,double> > descriptor_type;
hashed_feature_image (