Further simplified these examples.

This commit is contained in:
Davis King 2012-01-21 16:52:54 -05:00
parent 7b5cedcd7b
commit 3a4f1c0e4d
2 changed files with 2 additions and 10 deletions

View File

@ -278,11 +278,7 @@ int main()
// Put the image and detections into the window.
win.clear_overlay();
win.set_image(images[i]);
for (unsigned long j = 0; j < rects.size(); ++j)
{
// Add each detection as a red box.
win.add_overlay(rects[j], rgb_pixel(255,0,0));
}
win.add_overlay(rects, rgb_pixel(255,0,0));
cout << "Hit enter to see the next image.";
cin.get();

View File

@ -213,11 +213,7 @@ int main()
// Put the image and detections into the window.
win.clear_overlay();
win.set_image(images[i]);
for (unsigned long j = 0; j < rects.size(); ++j)
{
// Add each detection as a red box.
win.add_overlay(rects[j], rgb_pixel(255,0,0));
}
win.add_overlay(rects, rgb_pixel(255,0,0));
cout << "Hit enter to see the next image.";
cin.get();