mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
With OpenCV >3.1 and 2.4.13, OpenCV can now be installed without specific modules. This makes it so that `node-opencv` will still be able to compile.
31 lines
692 B
C++
31 lines
692 B
C++
#ifndef __NODE_CALIB3D_H
|
|
#define __NODE_CALIB3D_H
|
|
|
|
#include "OpenCV.h"
|
|
|
|
#ifdef HAVE_OPENCV_CALIB3D
|
|
|
|
#if CV_MAJOR_VERSION >= 3
|
|
#include <opencv2/calib3d.hpp>
|
|
#endif
|
|
|
|
/**
|
|
* Implementation of calib3d.hpp functions
|
|
*/
|
|
class Calib3D: public Nan::ObjectWrap {
|
|
public:
|
|
static void Init(Local<Object> target);
|
|
static NAN_METHOD(FindChessboardCorners);
|
|
static NAN_METHOD(DrawChessboardCorners);
|
|
static NAN_METHOD(CalibrateCamera);
|
|
static NAN_METHOD(SolvePnP);
|
|
static NAN_METHOD(GetOptimalNewCameraMatrix);
|
|
static NAN_METHOD(StereoCalibrate);
|
|
static NAN_METHOD(StereoRectify);
|
|
static NAN_METHOD(ComputeCorrespondEpilines);
|
|
static NAN_METHOD(ReprojectImageTo3D);
|
|
};
|
|
|
|
#endif
|
|
#endif
|