mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
34 lines
628 B
C++
Executable File
34 lines
628 B
C++
Executable File
#include "OpenCV.h"
|
|
|
|
|
|
class Contour: public Nan::ObjectWrap {
|
|
public:
|
|
cv::Mat mat;
|
|
std::vector<std::vector<cv::Point> > contours;
|
|
std::vector<cv::Vec4i> hierarchy;
|
|
|
|
static Nan::Persistent<FunctionTemplate> constructor;
|
|
static void Init(Local<Object> target);
|
|
static NAN_METHOD(New);
|
|
|
|
Contour();
|
|
|
|
JSFUNC(Point)
|
|
JSFUNC(Points)
|
|
JSFUNC(Size)
|
|
JSFUNC(CornerCount)
|
|
JSFUNC(Area)
|
|
JSFUNC(ArcLength)
|
|
JSFUNC(ApproxPolyDP)
|
|
JSFUNC(ConvexHull)
|
|
JSFUNC(BoundingRect)
|
|
JSFUNC(MinAreaRect)
|
|
JSFUNC(FitEllipse)
|
|
JSFUNC(IsConvex)
|
|
JSFUNC(Moments)
|
|
JSFUNC(Hierarchy)
|
|
JSFUNC(Serialize)
|
|
JSFUNC(Deserialize)
|
|
};
|
|
|