-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGlobalUtil.cpp
More file actions
executable file
·43 lines (27 loc) · 1.5 KB
/
GlobalUtil.cpp
File metadata and controls
executable file
·43 lines (27 loc) · 1.5 KB
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
#include "GlobalUtil.h"
int GlobalUtil::_MaxFilterWidth = -1; //maximum filter width, use when GPU is not good enough
int GlobalUtil::_SubpixelLocalization = 1; //sub-pixel and sub-scale localization
int GlobalUtil::_MaxOrientation = 2; //whether we find multiple orientations for each feature
int GlobalUtil::_OrientationPack2 = 0; //use one float to store two orientations
float GlobalUtil::_MaxFeaturePercent = 0.005f;//at most 0.005 of all pixels
int GlobalUtil::_MaxLevelFeatureNum = 4096; //maximum number of features of a level
//hardware parameter, automatically retrieved
int GlobalUtil::_texMaxDim = 3200; //Maximum working size for SiftGPU, 3200 for packed
int GlobalUtil::_texMinDim = 16; //
int GlobalUtil::_MemCapGPU = 0;
int GlobalUtil::_FitMemoryCap = 0;
//when SiftGPUEX is not used, display VBO generation is skipped
int GlobalUtil::_InitPyramidWidth = 0;
int GlobalUtil::_InitPyramidHeight = 0;
int GlobalUtil::_octave_min_default = 0;
int GlobalUtil::_octave_num_default = -1;
//////////////////////////////////////////////////////////////////
int GlobalUtil::_FixedOrientation = 0; //upright
int GlobalUtil::_LoweOrigin = 0; //(0, 0) to be at the top-left corner.
int GlobalUtil::_NormalizedSIFT = 1; //normalize descriptor
///
int GlobalUtil::_TruncateMethod = 0;
int GlobalUtil::_FeatureCountThreshold = -1;
bool GlobalUtil::_EnableDetailedTimings = false;
float GlobalUtil::_SiftDepthMin = 0.1f;
float GlobalUtil::_SiftDepthMax = 3.0f;