-
Notifications
You must be signed in to change notification settings - Fork 5
/
detectors_parameters.hpp
62 lines (55 loc) · 1.35 KB
/
detectors_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
53
54
55
56
57
58
59
60
61
62
#ifndef DETECTORS_PARAMETERS_HPP
#define DETECTORS_PARAMETERS_HPP
#include "structures.hpp"
#include "mser/extrema/extremaParams.h"
#include "affinedetectors/scale-space-detector.hpp"
struct ReadAffsFromFileParams {
std::string fname;
ReadAffsFromFileParams() {
fname="";
}
};
struct ORBParams
{
int nfeatures;
float scaleFactor;
int nlevels;
int edgeThreshold;
int firstLevel;
int WTA_K;
PatchExtractionParams PEParam;
bool doBaumberg;
int doNMS;
// int patchSize;
// double mrSize;
// bool FastPatchExtraction;
// bool photoNorm;
ORBParams()
{
doBaumberg = false;
nfeatures = 500;
scaleFactor = 1.2;
nlevels = 8;
edgeThreshold = 31;
firstLevel = 0;
WTA_K=2;
doNMS=1;
// patchSize=31;
// mrSize = 3.0*sqrt(3.0);
// FastPatchExtraction = false;
// photoNorm =false;
}
};
struct DetectorsParameters
{
extrema::ExtremaParams MSERParam;
ScaleSpaceDetectorParams HessParam;
ScaleSpaceDetectorParams HarrParam;
ScaleSpaceDetectorParams DoGParam;
zmqDescriptorParams AffNetParam;
zmqDescriptorParams OriNetParam;
ReadAffsFromFileParams ReadAffsFromFileParam;
AffineShapeParams BaumbergParam;
ORBParams ORBParam;
};
#endif // DETECTORS_PARAMETERS_HPP