8 #include <utils/logger.hpp>
11 #if ENABLE_MULTITHREADING && ENABLE_OPENMP
14 #if ENABLE_MULTITHREADING && ENABLE_MPI
18 _INITIALIZE_EASYLOGGINGPP
23 #if ENABLE_MULTITHREADING && ENABLE_OPENMP
24 #pragma omp parallel for schedule(dynamic)
26 for (int64_t i = 0; i < (int64_t)dataset.num_images(); i++) {
28 if (image ==
nullptr)
continue;
30 const std::string &keypoints_location = dataset.
location(image->feature_path(
"keypoints"));
31 const std::string &descriptors_location = dataset.location(image->feature_path(
"descriptors"));
33 const std::string &image_location = dataset.location(image->location());
37 cv::Mat im = cv::imread(image_location, cv::IMREAD_GRAYSCALE);
39 cv::Mat keypoints, descriptors;
50 int main(
int argc,
char *argv[]) {
51 #if ENABLE_MULTITHREADING && ENABLE_MPI
52 MPI::Init(argc, argv);
63 #if ENABLE_MULTITHREADING && ENABLE_MPI