node-opencv/src/BackgroundSubtractor.h
Mark Moissette a793f21561 - first pass migration of all relevant source done
* compiling ok under node 0.11.13
 * missing a  number of async methods
2014-09-21 12:42:55 +02:00

22 lines
511 B
C++

#include "OpenCV.h"
#if CV_MAJOR_VERSION >= 2 && CV_MINOR_VERSION >=4
#include <opencv2/video/background_segm.hpp>
class BackgroundSubtractorWrap: public node::ObjectWrap {
public:
cv::Ptr<cv::BackgroundSubtractor> subtractor;
static Persistent<FunctionTemplate> constructor;
static void Init(Handle<Object> target);
static NAN_METHOD(New);
BackgroundSubtractorWrap(cv::Ptr<cv::BackgroundSubtractor> bg);
static NAN_METHOD(CreateMOG);
static NAN_METHOD(ApplyMOG);
};
#endif