-
Notifications
You must be signed in to change notification settings - Fork 27
/
main.h
59 lines (50 loc) · 1.09 KB
/
main.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
#ifndef _MAIN_H_
#define _MAIN_H_
#include "opencv2/calib3d/calib3d.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/core/core.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/opencv.hpp"
// Includes CUDA
#include <cuda_runtime.h>
#include <cuda.h>
#include <cuda_runtime_api.h>
#include <cuda_texture_types.h>
#include <curand_kernel.h>
#include <vector_types.h>
#include <vector>
#include <string>
#include <iostream>
#include <fstream>
#include <sstream>
#include <algorithm>
#include <map>
#include <memory>
#include "iomanip"
#include <sys/stat.h> // mkdir
#include <sys/types.h> // mkdir
#define MAX_IMAGES 256
#define JBU_NUM 2
struct Camera {
float K[9];
float R[9];
float t[3];
int height;
int width;
float depth_min;
float depth_max;
};
struct Problem {
int ref_image_id;
std::vector<int> src_image_ids;
int max_image_size = 3200;
int num_downscale = 0;
int cur_image_size = 3200;
};
struct PointList {
float3 coord;
float3 normal;
float3 color;
};
#endif // _MAIN_H_