-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoptimizer_main.cpp
More file actions
32 lines (26 loc) · 967 Bytes
/
Copy pathoptimizer_main.cpp
File metadata and controls
32 lines (26 loc) · 967 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include "functions.h"
#include <iostream>
#include <vector>
#include <string>
int main(int argc, char* argv[]) {
if (argc != 9) {
std::cerr << "Usage: optimizer_main nfeatures scaleFactor nlevels edgeThreshold patchSize fastThreshold WTA_K scoreType" << std::endl;
return 1;
}
int nfeatures = std::stoi(argv[1]);
float scaleFactor = std::stof(argv[2]);
int nlevels = std::stoi(argv[3]);
int edgeThreshold = std::stoi(argv[4]);
int patchSize = std::stoi(argv[5]);
int fastThreshold = std::stoi(argv[6]);
int wta_k = std::stoi(argv[7]);
int score_type = std::stoi(argv[8]);
std::vector<std::string> object_folders = {
"004_sugar_box",
"006_mustard_bottle",
"035_power_drill"
};
double miou = process_all_orb(object_folders, nfeatures, scaleFactor, nlevels, edgeThreshold, patchSize, fastThreshold, wta_k, score_type);
std::cout << miou << std::endl;
return 0;
}