-
Notifications
You must be signed in to change notification settings - Fork 5
/
descriptors_parameters.hpp
52 lines (42 loc) · 1.1 KB
/
descriptors_parameters.hpp
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef DESCRIPTORS_PARAMETERS_HPP
#define DESCRIPTORS_PARAMETERS_HPP
#include "detectors/structures.hpp"
#include "matching/siftdesc.h"
struct DominantOrientationParams {
int maxAngles;
float threshold;
bool addUpRight;
bool halfSIFTMode;
bool useZMQ;
bool addMirrored;
std::string external_command;
PatchExtractionParams PEParam;
DominantOrientationParams() {
maxAngles = -1;
threshold = 0.8;
addUpRight = false;
halfSIFTMode = false;
useZMQ = false;
addMirrored = false;
external_command = "";
}
};
struct CLIDescriptorParams {
PatchExtractionParams PEParam;
std::string runfile;
std::string hardcoded_input_fname;
std::string hardcoded_output_fname;
bool hardcoded_run_string;
CLIDescriptorParams() {
hardcoded_run_string = true;
}
};
struct DescriptorsParameters {
CLIDescriptorParams CLIDescParam;
SIFTDescriptorParams SIFTParam;
SIFTDescriptorParams RootSIFTParam;
SIFTDescriptorParams HalfSIFTParam;
SIFTDescriptorParams HalfRootSIFTParam;
zmqDescriptorParams zmqDescParam;
};
#endif // DESCRIPTORS_PARAMETERS_HPP