Commit 712c6577 authored by Davis King's avatar Davis King

Added get_feature_extractor() functions to the image scanners so the underlying

feature extractors can have their parameters queried.
parent a448b452
...@@ -74,6 +74,9 @@ namespace dlib ...@@ -74,6 +74,9 @@ namespace dlib
const box_generator& get_box_generator ( const box_generator& get_box_generator (
) const { return detect_boxes; } ) const { return detect_boxes; }
const Feature_extractor_type& get_feature_extractor (
) const { return feats; }
inline void copy_configuration ( inline void copy_configuration (
const scan_image_boxes& item const scan_image_boxes& item
); );
......
...@@ -177,16 +177,23 @@ namespace dlib ...@@ -177,16 +177,23 @@ namespace dlib
false otherwise. false otherwise.
!*/ !*/
const feature_extractor_type& get_feature_extractor (
) const;
/*!
ensures
- returns a const reference to the feature_extractor_type object used
internally for local feature extraction.
!*/
void copy_configuration( void copy_configuration(
const feature_extractor_type& fe const feature_extractor_type& fe
); );
/*! /*!
ensures ensures
- Let BASE_FE denote the feature_extractor_type object used internally for - This function performs the equivalent of
local feature extraction. Then this function performs get_feature_extractor().copy_configuration(fe) (i.e. this function allows
BASE_FE.copy_configuration(fe) (i.e. this function allows you to you to configure the parameters of the underlying feature extractor used
configure the parameters of the underlying feature extractor used by a by a scan_image_boxes object)
scan_image_boxes object)
!*/ !*/
void copy_configuration( void copy_configuration(
......
...@@ -51,6 +51,9 @@ namespace dlib ...@@ -51,6 +51,9 @@ namespace dlib
const scan_image_pyramid& item const scan_image_pyramid& item
); );
const Feature_extractor_type& get_feature_extractor (
) const { return feats_config; }
void add_detection_template ( void add_detection_template (
const rectangle& object_box, const rectangle& object_box,
const std::vector<rectangle>& stationary_feature_extraction_regions, const std::vector<rectangle>& stationary_feature_extraction_regions,
......
...@@ -150,16 +150,23 @@ namespace dlib ...@@ -150,16 +150,23 @@ namespace dlib
and false otherwise. and false otherwise.
!*/ !*/
const feature_extractor_type& get_feature_extractor (
) const;
/*!
ensures
- returns a const reference to the feature_extractor_type object used
internally for local feature extraction.
!*/
void copy_configuration( void copy_configuration(
const feature_extractor_type& fe const feature_extractor_type& fe
); );
/*! /*!
ensures ensures
- Let BASE_FE denote the feature_extractor_type object used - This function performs the equivalent of
internally for local feature extraction. Then this function get_feature_extractor().copy_configuration(fe) (i.e. this function allows
performs BASE_FE.copy_configuration(fe) you to configure the parameters of the underlying feature extractor used
(i.e. this function allows you to configure the parameters of the by a scan_image_pyramid object)
underlying feature extractor used by a scan_image_pyramid object)
!*/ !*/
void copy_configuration ( void copy_configuration (
......
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