forked from peterbraden/node-opencv
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix code formatting for native code closes peterbraden#295
- Loading branch information
Anshul Jain
committed
Sep 15, 2015
1 parent
97b8963
commit 7c426bf
Showing
33 changed files
with
3,206 additions
and
2,973 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
#include "OpenCV.h" | ||
|
||
#if CV_MAJOR_VERSION >= 2 && CV_MINOR_VERSION >=4 | ||
#if ((CV_MAJOR_VERSION >= 2) && (CV_MINOR_VERSION >=4)) | ||
|
||
#include <opencv2/video/background_segm.hpp> | ||
|
||
class BackgroundSubtractorWrap: public node::ObjectWrap { | ||
public: | ||
cv::Ptr<cv::BackgroundSubtractor> subtractor; | ||
public: | ||
cv::Ptr<cv::BackgroundSubtractor> subtractor; | ||
|
||
static Persistent<FunctionTemplate> constructor; | ||
static void Init(Handle<Object> target); | ||
static NAN_METHOD(New); | ||
static Persistent<FunctionTemplate> constructor; | ||
static void Init(Handle<Object> target); | ||
static NAN_METHOD(New); | ||
|
||
BackgroundSubtractorWrap(cv::Ptr<cv::BackgroundSubtractor> bg); | ||
BackgroundSubtractorWrap(cv::Ptr<cv::BackgroundSubtractor> bg); | ||
|
||
static NAN_METHOD(CreateMOG); | ||
static NAN_METHOD(ApplyMOG); | ||
static NAN_METHOD(CreateMOG); | ||
static NAN_METHOD(ApplyMOG); | ||
}; | ||
|
||
#endif |
Oops, something went wrong.