diff options
Diffstat (limited to 'gaunt01/src/testApp.h')
| -rw-r--r-- | gaunt01/src/testApp.h | 38 |
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; |
