mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
Added stub imgproc source file
This commit is contained in:
parent
e0998baa92
commit
96068dd7a9
@ -15,6 +15,7 @@
|
|||||||
, "src/BackgroundSubtractor.cc"
|
, "src/BackgroundSubtractor.cc"
|
||||||
, "src/Constants.cc"
|
, "src/Constants.cc"
|
||||||
, "src/Calib3D.cc"
|
, "src/Calib3D.cc"
|
||||||
|
, "src/ImgProc.cc"
|
||||||
]
|
]
|
||||||
, 'libraries': [
|
, 'libraries': [
|
||||||
'<!@(pkg-config --libs opencv)'
|
'<!@(pkg-config --libs opencv)'
|
||||||
|
|||||||
10
src/ImgProc.cc
Normal file
10
src/ImgProc.cc
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#include "ImgProc.h"
|
||||||
|
|
||||||
|
void ImgProc::Init(Handle<Object> target)
|
||||||
|
{
|
||||||
|
Persistent<Object> inner;
|
||||||
|
Local<Object> obj = NanNew<Object>();
|
||||||
|
NanAssignPersistent(inner, obj);
|
||||||
|
|
||||||
|
target->Set(NanNew("imgproc"), obj);
|
||||||
|
}
|
||||||
13
src/ImgProc.h
Normal file
13
src/ImgProc.h
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#ifndef __NODE_IMGPROC_H
|
||||||
|
#define __NODE_IMGPROC_H
|
||||||
|
|
||||||
|
#include "OpenCV.h"
|
||||||
|
|
||||||
|
// Implementation of imgproc.hpp functions
|
||||||
|
|
||||||
|
class ImgProc: public node::ObjectWrap {
|
||||||
|
public:
|
||||||
|
static void Init(Handle<Object> target);
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
@ -10,6 +10,7 @@
|
|||||||
#include "FaceRecognizer.h"
|
#include "FaceRecognizer.h"
|
||||||
#include "Constants.h"
|
#include "Constants.h"
|
||||||
#include "Calib3D.h"
|
#include "Calib3D.h"
|
||||||
|
#include "ImgProc.h"
|
||||||
|
|
||||||
extern "C" void
|
extern "C" void
|
||||||
init(Handle<Object> target) {
|
init(Handle<Object> target) {
|
||||||
@ -25,6 +26,7 @@ init(Handle<Object> target) {
|
|||||||
NamedWindow::Init(target);
|
NamedWindow::Init(target);
|
||||||
Constants::Init(target);
|
Constants::Init(target);
|
||||||
Calib3D::Init(target);
|
Calib3D::Init(target);
|
||||||
|
ImgProc::Init(target);
|
||||||
|
|
||||||
|
|
||||||
#if CV_MAJOR_VERSION >= 2 && CV_MINOR_VERSION >=4
|
#if CV_MAJOR_VERSION >= 2 && CV_MINOR_VERSION >=4
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user