-
Notifications
You must be signed in to change notification settings - Fork 16
/
descriptors_parameters.hpp
91 lines (84 loc) · 2.33 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
/*------------------------------------------------------*/
/* Copyright 2013, Dmytro Mishkin [email protected] */
/*------------------------------------------------------*/
#ifndef DESCRIPTORS_PARAMETERS_HPP
#define DESCRIPTORS_PARAMETERS_HPP
#include "detectors/structures.hpp"
#include "matching/siftdesc.h"
#include "descriptors/mroghdesc.hpp"
#include "descriptors/pixelsdesc.hpp"
#include "descriptors/surfdescriptor.hpp"
#include "descriptors/freakdescriptor.hpp"
#include "descriptors/kazedescriptor.hpp"
#include "descriptors/bicedescriptor.hpp"
//#include "descriptors/dalidescriptor.hpp"
#include "descriptors/smslddescriptor.hpp"
#include "descriptors/orbdescriptor.hpp"
#include "descriptors/briskdescriptor.hpp"
#include "descriptors/daisydescriptor.hpp"
#include "descriptors/ssimdescriptor.hpp"
#include "matching/liopdesc.hpp"
struct DominantOrientationParams {
int maxAngles;
float threshold;
bool addUpRight;
bool halfSIFTMode;
PatchExtractionParams PEParam;
DominantOrientationParams() {
maxAngles = -1;
threshold = 0.8;
addUpRight = false;
halfSIFTMode = false;
}
};
struct CaffeDescriptorParams
{
std::string WeightsFile;
std::string ProtoTxt;
double MeanB;
double MeanG;
double MeanR;
int batchSize;
std::string LayerName;
std::string Pooling;
std::string Normalization;
bool DoSIFTLikeOrientation;
int maxOrientations;
bool estimateOrientation;
double orientTh;
PatchExtractionParams PEParam;
CaffeDescriptorParams()
{
MeanB=104;
MeanG=117;
MeanR=123;
batchSize = 256;
Pooling = "none";
Normalization = "L2";
DoSIFTLikeOrientation = true;
maxOrientations = 0;
estimateOrientation= true;
orientTh = 0.8;
}
};
struct DescriptorsParameters {
SIFTDescriptorParams SIFTParam;
SIFTDescriptorParams MagnLessSIFTParam;
SIFTDescriptorParams RootSIFTParam;
SIFTDescriptorParams HalfSIFTParam;
SIFTDescriptorParams HalfRootSIFTParam;
LIOPDescriptorParams LIOPParam;
FREAKParams FREAKParam;
BRISKParams BRISKParam;
MROGHParams MROGHParam;
CaffeDescriptorParams CaffeDescParam;
BICEParams BICEParam;
PIXELSDescriptorParams PixelsParam;
KAZEParams KAZEParam;
SURFParams SURFDescParam;
// DALIParams DALIDescParam;
SMSLDParams SMSLDDescParam;
DAISYParams DAISYParam;
SSIMParams SSIMParam;
};
#endif // DESCRIPTORS_PARAMETERS_HPP