From 58f154e844aed7ba06df3ac570521930de66b744 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Thu, 14 Jun 2012 02:04:16 +0100 Subject: mostly good --- gaunt01/src/testApp.h | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) (limited to 'gaunt01/src/testApp.h') 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; -- cgit v1.2.3