node-opencv/src/Image.h
2012-01-14 09:14:00 -08:00

16 lines
511 B
C++

#include "OpenCV.h"
class Image: public node::ObjectWrap {
public:
IplImage* image;
static Persistent<FunctionTemplate> constructor;
static void Init(Handle<Object> target);
static Handle<Value> New(const Arguments &args);
Image(int width, int height);
Image(v8::Value* src);
static Handle<Value> GetWidth(Local<String> prop, const AccessorInfo &info);
static Handle<Value> GetHeight(Local<String> prop, const AccessorInfo &info);
};