Commit 7847038b authored by Davis King's avatar Davis King

Simplified code slightly and filled out the spec

parent 94b03445
...@@ -29,10 +29,6 @@ namespace dlib ...@@ -29,10 +29,6 @@ namespace dlib
rects.clear(); rects.clear();
find_candidate_object_locations(img, rects); find_candidate_object_locations(img, rects);
} }
void copy_configuration (
const default_box_generator&
){}
}; };
inline void serialize(const default_box_generator&, std::ostream& ) {} inline void serialize(const default_box_generator&, std::ostream& ) {}
...@@ -341,7 +337,7 @@ namespace dlib ...@@ -341,7 +337,7 @@ namespace dlib
const box_generator& bg const box_generator& bg
) )
{ {
detect_boxes.copy_configuration(bg); detect_boxes = bg;
} }
// ---------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------
...@@ -356,7 +352,7 @@ namespace dlib ...@@ -356,7 +352,7 @@ namespace dlib
) )
{ {
feats.copy_configuration(item.feats); feats.copy_configuration(item.feats);
detect_boxes.copy_configuration(item.detect_boxes); detect_boxes = item.detect_boxes;
num_spatial_pyramid_levels = item.num_spatial_pyramid_levels; num_spatial_pyramid_levels = item.num_spatial_pyramid_levels;
} }
......
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