node-opencv/src/Features2d.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

21 lines
388 B
C++

#include "OpenCV.h"
#if ((CV_MAJOR_VERSION == 2) && (CV_MINOR_VERSION >=4))
#ifdef HAVE_OPENCV_FEATURES2D
#include <opencv2/core/core.hpp>
#include <opencv2/features2d/features2d.hpp>
class Features: public Nan::ObjectWrap {
public:
static Nan::Persistent<FunctionTemplate> constructor;
static void Init(Local<Object> target);
static NAN_METHOD(Similarity);
};
#endif
#endif