stereo-vision
All Data Structures Namespaces Functions Modules Pages
common.h
1 #ifndef _COMMON
2 #define _COMMON
3 
4 #include <cuda_runtime.h>
5 #include <iostream>
6 #include <stdio.h>
7 #include <assert.h>
8 #include <opencv2/opencv.hpp>
9 #include <opencv2/highgui/highgui.hpp>
10 #include <opencv2/core/hal/interface.h>
11 #include <assert.h>
12 #include <algorithm>
13 
14 #define WARP_SIZE 32
15 
16 #define numberOfDisparities 96
17 #define INVALID_DISP_SCALED -16
18 #define DISP_SCALE 16
19 #define DISP_SHIFT 4
20 
21 using namespace std;
22 
23 typedef unsigned char PixType;
24 typedef short CostType;
25 typedef short DispType;
26 
27 typedef struct _SGM_PARAMS
28 {
29  int P1;
30  int P2;
31  int preFilterCap;
32  int BlockSize;
33  int uniquenessRatio;
34  int disp12MaxDiff;
35 }SGM_PARAMS;
36 
37 
38 #endif