node-opencv/src/CamShift.h
Keegan Brown ec09e0bdde Swapped out all "handle" for "local"
Now building and passing tests locally in node v0.10.40 v0.12.7 and
v4.1.1. Other modules would not build at node lower than v0.10, so I
stopped there.
2015-10-05 14:33:12 -05:00

23 lines
399 B
C++

#include "OpenCV.h"
class TrackedObject: public Nan::ObjectWrap {
public:
int channel;
cv::Mat hsv;
cv::Mat hue;
cv::Mat mask;
cv::Mat prob;
cv::Mat hist;
cv::Rect prev_rect;
static Nan::Persistent<FunctionTemplate> constructor;
static void Init(Local<Object> target);
static NAN_METHOD(New);
TrackedObject(cv::Mat image, cv::Rect rect, int channel);
JSFUNC(Track);
};