summaryrefslogtreecommitdiff
path: root/gaunt01/src/testApp.h
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2012-06-14 02:04:16 +0100
committerTim Redfern <tim@eclectronics.org>2012-06-14 02:04:16 +0100
commit58f154e844aed7ba06df3ac570521930de66b744 (patch)
tree198901f4cba5ee5621d8fe27d4704825c54dd98f /gaunt01/src/testApp.h
parenteecd5a7eb92f24a1e9d3a2e6853363f23ccfccb2 (diff)
mostly good
Diffstat (limited to 'gaunt01/src/testApp.h')
-rw-r--r--gaunt01/src/testApp.h38
1 files changed, 37 insertions, 1 deletions
diff --git a/gaunt01/src/testApp.h b/gaunt01/src/testApp.h
index ca10681..529acec 100644
--- a/gaunt01/src/testApp.h
+++ b/gaunt01/src/testApp.h
@@ -28,6 +28,17 @@
#define PLAYING 3
#define GOTCHA 4
+#define CAM_WIDTH_FG 640
+#define CAM_HEIGHT_FG 480
+
+#define chan_R 1
+#define chan_G 2
+#define chan_B 3
+#define chan_H 4
+#define chan_S 5
+#define chan_V 6
+
+#define DEBUG 0
class testApp : public ofBaseApp{
@@ -65,13 +76,38 @@ class testApp : public ofBaseApp{
ofVideoGrabber vidGrabber;
ofVideoPlayer vidPlayer;
- ofxCvColorImage colorImg;
+ ofxCvColorImage colorImg;
+
+ int diffchannel;
+
+ cv::Mat accumulator,outmat,hsvback,hsvfront,backchan,frontchan,output; // background accumulation
+
+ ofxCvColorImage currentFrame;
+ ofxCvColorImage background;
+
+ ofxCvColorImage mogoutput;
+
+ ofxCvGrayscaleImage grayFrame;
+ ofxCvGrayscaleImage grayBg;
+ ofxCvGrayscaleImage grayDiff;
+
+ float learningRate;
+ bool bFirstFrame;
+
+ //cv::BackgroundSubtractorMOG mog;
+
+ float mogf;
+
+ bool removeShadows;
+ int shadowThreshold;
+ /*
ofxCvFloatImage accumImg;
ofxCvGrayscaleImage bgImg;
ofxCvGrayscaleImage grayImage;
ofxCvGrayscaleImage grayBg;
ofxCvGrayscaleImage grayDiff;
+ */
ofxCvContourFinder contourFinder;