node-opencv/src/Calib3D.h
Dan Schultzer 95b0596245 Add logic for available modules
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.
2017-09-15 11:29:32 -07:00

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