mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
Fixed function name
This commit is contained in:
parent
1eeae7879c
commit
3655349e83
@ -101,7 +101,7 @@ Matrix::Init(Handle<Object> target) {
|
|||||||
NODE_SET_PROTOTYPE_METHOD(ctor, "setWithMask", SetWithMask);
|
NODE_SET_PROTOTYPE_METHOD(ctor, "setWithMask", SetWithMask);
|
||||||
NODE_SET_PROTOTYPE_METHOD(ctor, "meanWithMask", MeanWithMask);
|
NODE_SET_PROTOTYPE_METHOD(ctor, "meanWithMask", MeanWithMask);
|
||||||
NODE_SET_PROTOTYPE_METHOD(ctor, "shift", Shift);
|
NODE_SET_PROTOTYPE_METHOD(ctor, "shift", Shift);
|
||||||
NODE_SET_PROTOTYPE_METHOD(ctor, "release", Dispose);
|
NODE_SET_PROTOTYPE_METHOD(ctor, "release", Release);
|
||||||
|
|
||||||
target->Set(NanNew("Matrix"), ctor->GetFunction());
|
target->Set(NanNew("Matrix"), ctor->GetFunction());
|
||||||
};
|
};
|
||||||
@ -2257,9 +2257,11 @@ NAN_METHOD(Matrix::Shift){
|
|||||||
|
|
||||||
NAN_METHOD(Matrix::Release)
|
NAN_METHOD(Matrix::Release)
|
||||||
{
|
{
|
||||||
SETUP_FUNCTION(Matrix)
|
NanScope();
|
||||||
|
|
||||||
mat.release();
|
Matrix *self = ObjectWrap::Unwrap<Matrix>(args.This());
|
||||||
|
|
||||||
|
self->mat.release();
|
||||||
|
|
||||||
NanReturnUndefined();
|
NanReturnUndefined();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user