summaryrefslogtreecommitdiff
path: root/src/testApp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/testApp.h')
-rwxr-xr-xsrc/testApp.h23
1 files changed, 17 insertions, 6 deletions
diff --git a/src/testApp.h b/src/testApp.h
index bea746c..c8db7f2 100755
--- a/src/testApp.h
+++ b/src/testApp.h
@@ -8,9 +8,12 @@
#include "ofxFensterManager.h"
#include "ofxGui.h"
-#define COLOUR 1
-#define GREY 2
-#define DIFF 3
+#define DISPLAY_FG 1
+#define DISPLAY_BG 2
+#define DISPLAY_DIFF 3
+
+#define METHOD_SIMPLE 4
+#define METHOD_ACCUM 5
//12-10-12
//each area will trigger 'once and once only' ?
@@ -20,6 +23,10 @@
//tweak opencv stuff
//test performance
+//size factor
+//continuous background
+//abs diff?
+
class guiWindow;
@@ -49,16 +56,18 @@ class testApp : public ofxFensterListener{
ofVideoGrabber vidGrabber;
int gw,gh;
+
+ float learningRate,startTime;
- ofxCvColorImage colorImg;
-
+ cv::Mat accumulator,outmat;
+ ofxCvColorImage colorImg;
ofxCvGrayscaleImage grayImage;
ofxCvGrayscaleImage grayBg;
ofxCvGrayscaleImage grayDiff;
ofxCvContourFinder contourFinder;
- int mode;
+ int mode,method;
bool bLearnBakground;
bool flip,invert;
@@ -80,11 +89,13 @@ class testApp : public ofxFensterListener{
// ie:
// ofAddListener(addon.newIntEvent, this, &Class::method)
void volumeChanged(float &v);
+ void resetBG(bool &chg);
bool bGrab;
vector<boundary> boundaries;
int selectedBoundary;
+ int selectedPoint;
vector<ofPoint> clicks;
};