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

24 lines
450 B
C++

#ifndef __NODE_IMGPROC_H
#define __NODE_IMGPROC_H
#include "OpenCV.h"
#ifdef HAVE_OPENCV_IMGPROC
/**
* Implementation of imgproc.hpp functions
*/
class ImgProc: public Nan::ObjectWrap {
public:
static void Init(Local<Object> target);
static NAN_METHOD(DistanceTransform);
static NAN_METHOD(Undistort);
static NAN_METHOD(InitUndistortRectifyMap);
static NAN_METHOD(Remap);
static NAN_METHOD(GetStructuringElement);
};
#endif
#endif