Skip to content
This repository
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 18 lines (14 sloc) 0.651 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
// Template class for 2D points

#include "OpenCV.h"

class Point: public node::ObjectWrap {
  public:
      CvPoint2D32f point;
      static Persistent<FunctionTemplate> constructor;
      static void Init(Handle<Object> target);
      static Handle<Value> New(const Arguments &args);
      Point(double x, double y);
    
      static Handle<Value> GetX(Local<String> prop, const AccessorInfo &info);
      static Handle<Value> GetY(Local<String> prop, const AccessorInfo &info);
      static void RaiseImmutable(Local<String> property, Local<Value> value, const AccessorInfo& info);
      static Handle<Value> Dot(const v8::Arguments&);

};
Something went wrong with that request. Please try again.