-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcommon.h
53 lines (43 loc) · 1.39 KB
/
common.h
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
#ifndef COMMON_H
#define COMMON_H
#include <cstdint>
//#include <limits>
const float fx = 517.3f;
const float fy = 516.5f;
const float cx = 318.6f;
const float cy = 255.3f;
const float distThres = 0.08f;
const float normalThres = 1.0f;
const float idealError = 0.0f;
const float intrinsics[] = {fx, 0, cx, 0, fy, cy, 0, 0, 1};
const float intrinsicsTranspose[] = {fx, 0, 0, 0, fy, 0, cx, cy, 1};
const int numCols = 640;
const int numRows = 480;
const int imgWidth = numCols;
const int imgHeight = numRows;
const int windowWidth = 1024;
const int windowHeight = 768;
//const float MAXF = std::numeric_limits<float>::max();
//const float MINF = std::numeric_limits<float>::quiet_NaN();
//const float MINF = std::numeric_limits<float>::min();
const int pyramid_size = 2;
const int pyramid_iters[pyramid_size+1] = {4,5,10};
//#define MINF 0xff800000
//#define MAXF 0x7F7FFFFF
/*-----Kinect related------*/
const int kinZNear = 1.0f;
const float kinZFar = 1000.0f;
/*-----Hashtable Params----*/
const int numBuckets = 5000;
const int bucketSize = 5;
const int attachedLinkedListSize = 4;
const int numVoxelBlocks = 1000;
const int voxelBlockSize = 8;
const float voxelSize = 0.02f;
const int numOccupiedBlocks = 0;
const float maxIntegrationDistance = 4.0f;
const float truncScale = 0.01f;
const float truncation = 1.0f;
const int integrationWeightSample = 10;
const float integrationWeightMax = 255;
#endif