File: Stereo.h

package info (click to toggle)
node-opencv 6.0.0+git20180416.cfc96ba0-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 24,632 kB
  • sloc: xml: 476,707; cpp: 5,950; makefile: 114; sh: 59; ansic: 20
file content (56 lines) | stat: -rw-r--r-- 1,268 bytes parent folder | download
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