File: Matrix.h

package info (click to toggle)
node-opencv 7.0.0%2Bgit20200310.6c13234-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 23,056 kB
  • sloc: xml: 476,274; cpp: 6,036; javascript: 2,284; makefile: 56; sh: 25; ansic: 20
file content (28 lines) | stat: -rwxr-xr-x 628 bytes parent folder | download | duplicates (2)
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
/*
  This file defines the public native interface into an node-opencv Matrix
  object.  This is used to retrieve the wrapped OpenCV cv:Mat object from other
  native code:

  NAN_METHOD(UnwrapMatrix) {
    cv::Mat mat = Nan::ObjectWrap::Unwrap<node_opencv::Matrix>(Nan::To<v8::Object>(info[0]).ToLocalChecked())->mat;
    // ...
  }

 */
#ifndef NODE_OPENCV_MATRIX_H
#define NODE_OPENCV_MATRIX_H
#include <opencv2/opencv.hpp>
#include <node_object_wrap.h>

namespace node_opencv {

class Matrix: public Nan::ObjectWrap {
public:
  cv::Mat mat;
protected:
  Matrix(): Nan::ObjectWrap() {};
};

}

#endif // NODE_OPENCV_MATRIX_H