node-opencv/src/ImgProc.h
jspdown e3090f4176 Add GetStructuringElement function
GetStructuringElement returns a kernel that can be used to perform
morphological operation. This function can be available in `cv.imgproc`
and takes two arguments, the erosion type (MORPH_RECT, MORPH_CROSS,
MORPH_ELLIPSE, ...) and the size of the generated kernel. The `ksize`
argument must be an array of two numbers.
The output kernel is often use for Dilation and Erosion operations.
2015-11-22 15:19:30 +01:00

19 lines
374 B
C++

#ifndef __NODE_IMGPROC_H
#define __NODE_IMGPROC_H
#include "OpenCV.h"
/**
* Implementation of imgproc.hpp functions
*/
class ImgProc: public Nan::ObjectWrap {
public:
static void Init(Local<Object> target);
static NAN_METHOD(Undistort);
static NAN_METHOD(InitUndistortRectifyMap);
static NAN_METHOD(Remap);
static NAN_METHOD(GetStructuringElement);
};
#endif