mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
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.
19 lines
374 B
C++
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
|