sample_images.cpp.in 588 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#include <vector>
#include <string>
#include <iostream>
#include <sstream>

using namespace std;

namespace comparison_benchmarks {
    namespace base {
        vector<string> get_sample_image_paths() {
            const int num_images = 19;

            vector<string> result(num_images);
            for (int i = 0; i < num_images; i++) {
                ostringstream string_stream;
                string_stream << "@CMAKE_CURRENT_SOURCE_DIR@/sample_images/" << i << ".jpg";
                result[i] = string_stream.str();
            }

            return result;
        }
    }
}