Commit 6010de9b authored by Davis King's avatar Davis King

Removed unnecessary load() calls now that they aren't required.

parent 3f203cbc
...@@ -255,16 +255,13 @@ namespace dlib ...@@ -255,16 +255,13 @@ namespace dlib
if (auto_overlap_tester) if (auto_overlap_tester)
{ {
image_scanner_type local_scanner;
local_scanner.copy_configuration(scanner);
std::vector<std::vector<rectangle> > mapped_rects(truth_rects.size()); std::vector<std::vector<rectangle> > mapped_rects(truth_rects.size());
for (unsigned long i = 0; i < truth_rects.size(); ++i) for (unsigned long i = 0; i < truth_rects.size(); ++i)
{ {
local_scanner.load(images[i]);
mapped_rects[i].resize(truth_rects[i].size()); mapped_rects[i].resize(truth_rects[i].size());
for (unsigned long j = 0; j < truth_rects[i].size(); ++j) for (unsigned long j = 0; j < truth_rects[i].size(); ++j)
{ {
mapped_rects[i][j] = local_scanner.get_best_matching_rect(truth_rects[i][j]); mapped_rects[i][j] = scanner.get_best_matching_rect(truth_rects[i][j]);
} }
} }
......
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