I'm currently developing a
BRMatcher::run(const v8::FunctionCallbackInfo<v8::Value>& args)
v8::Isolate* isolate = v8::Isolate::GetCurrent();
if (args.Length() < 1)
isolate->ThrowException(v8::Exception::TypeError(v8::String::NewFromUtf8(isolate, "Missing parameter [Mat img].")));
isolate->ThrowException(v8::Exception::TypeError(v8::String::NewFromUtf8(isolate, "Parameter [Mat img] must be an object.")));
Mat img = ??? // This is where I ended up...
At first I would recommend to look on existing openCV bindings for Node.js like node-opencv.
As I know, to convert a C++ object into v8::Object all of them use
C++ object to
v8::Object conversions are usually performed with mapping of a C++ pointer to persistent handle of the V8 object in a map container.