forked from peterbraden/node-opencv
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStereo.h
More file actions
56 lines (40 loc) · 1.24 KB
/
Copy pathStereo.h
File metadata and controls
56 lines (40 loc) · 1.24 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
44
45
46
47
48
49
50
51
52
53
54
55
56
#ifndef __NODE_STEREO_H
#define __NODE_STEREO_H
#include "OpenCV.h"
#if CV_MAJOR_VERSION < 3
class StereoBM: public Nan::ObjectWrap {
public:
cv::StereoBM stereo;
static Nan::Persistent<FunctionTemplate> constructor;
static void Init(Local<Object> target);
static NAN_METHOD(New);
StereoBM(int preset = cv::StereoBM::BASIC_PRESET, int ndisparities = 0,
int SADWindowSize = 21);
JSFUNC(Compute)
;
};
class StereoSGBM: public Nan::ObjectWrap {
public:
cv::StereoSGBM stereo;
static Nan::Persistent<FunctionTemplate> constructor;
static void Init(Local<Object> target);
static NAN_METHOD(New);
StereoSGBM();
StereoSGBM(int minDisparity, int ndisparities, int SADWindowSize, int p1 = 0,
int p2 = 0, int disp12MaxDiff = 0, int preFilterCap = 0,
int uniquenessRatio = 0, int speckleWindowSize = 0, int speckleRange = 0,
bool fullDP = false);
JSFUNC(Compute);
};
struct CvStereoGCState;
class StereoGC: public Nan::ObjectWrap {
public:
CvStereoGCState *stereo;
static Nan::Persistent<FunctionTemplate> constructor;
static void Init(Local<Object> target);
static NAN_METHOD(New);
StereoGC(int numberOfDisparities = 16, int maxIterations = 2);
JSFUNC(Compute);
};
#endif
#endif // __NODE_STEREO_H