-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdefines.h
106 lines (82 loc) · 2.43 KB
/
defines.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
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
/*!
* \file defines.h
* \author Gabriel Urbain <[email protected]> - Visitor student at MIT SSL
* \date July 2014
* \version 0.1
* \brief All the constant parameters of the software
*
* License: The MIT License (MIT)
* Copyright (c) 2014, Massachussets Institute of Technology
*/
#ifndef DEFINES_HH
#define DEFINES_HH
// Output streamings defines
#define __AUTHOR__ "Gabriel Urbain"
#define __F__ (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__)
#define ERROR cout << "\033[31m["<<setprecision(3)<<((float)clock())/CLOCKS_PER_SEC<<"] "<<"ERROR in "<<__F__<<":"<<__LINE__<<": \033[00m"
#define DEBUG cout << "\033[33m["<<setprecision(3)<<((float)clock())/CLOCKS_PER_SEC<<"] "<<"DEBUG in "<<__F__<<":"<<__LINE__<<": \033[00m"
#define INFO cout << "["<<setprecision(3)<<((float)clock())/CLOCKS_PER_SEC<<"] "<<"INFO: "
// Orf camera defines
#define USE_SR4K 1
#define USE_FILTER 1
#define ORF_IMG_DISTANCE 0
#define ORF_IMG_AMPLITUDE 1
#define ORF_IMG_CONFIDENCE 2
#define MODE (AM_CONF_MAP | AM_CONV_GRAY | AM_COR_FIX_PTRN | AM_DENOISE_ANF)
#define THRESH_ORF_CONF 230
#define ORF_COLS 176
#define ORF_ROWS 144
#define ORF_IMAGES 3
#define ORF_FOV_H 56
#define ORF_FOV_V 70
#define ORF_CLOUD_DOWNSAMPLING 10
// Stereo cameras defines
#define RING_BUFFER_SIZE 10
#define WAIT_TIMEOUT_MS 10000
#define CAM_FOV_H 35
#define CAM_FOV_V 35
#define TEST_PROJ_CHANNEL_FILE "/opt/GogglesDaemon/TEST_PROJ_CHANNEL"
#define CAMERA_FILE "/opt/GogglesOptics/CAMERA_FILE"
typedef struct _UEYE_IMAGE
{
char *pBuf;
int img_id;
int img_seqNum;
int nBufferSize;
} UEYE_IMAGE;
// Halo cameras defines
#define SYNCHRONOUS 1
#define ASYNCHRONOUS 0
#define CALIB_DIR "calib"
// Calibration defines
#define CALIB_DEBUG
#define ORF_NUMBER_BOARDS 15
#define STEREO_NUMBER_BOARDS 20
#define HALO_NUMBER_BOARDS 5
#define BOARD_WIDTH 6
#define BOARD_HEIGHT 11
#define BOARD_SIZE Size(BOARD_WIDTH, BOARD_HEIGHT)
#define SQUARE_SIZE 25 //mm
// Save and folder defines
#define SAVE_DIR "/home/gabs48/results"
// Triangulator defines
#define TRI_MONO 0
#define TRI_STEREO 1
#define IT_EPSILON 0.001
// Utils defines
#define DELTATMIN 150
#define DELTATMAX 300
// Fusion
#define PI 3.14159265
#define FUSION_DEBUG
#define SIGMA_T_COEFF 15
#define VAR_KER 2
#define TAD_KER 5
#define TAD_THRESH 128
#define OM_PREC 0.000006
#define OM_FOCUS 0.0028
#define K_INT 4
// Global variables
// long timeInit;
// timeval timeValInit;
#endif