From 8bc09d4264575d2752374413a180bf9dc1b3b035 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Thu, 17 May 2012 15:51:07 +0100 Subject: keying options --- cvtest/src/testApp.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'cvtest/src/testApp.h') diff --git a/cvtest/src/testApp.h b/cvtest/src/testApp.h index 4ec8fe5..4207bb9 100644 --- a/cvtest/src/testApp.h +++ b/cvtest/src/testApp.h @@ -14,6 +14,12 @@ #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 class testApp : public ofBaseApp{ @@ -41,7 +47,8 @@ class testApp : public ofBaseApp{ //try to accumulate background using SHORT datatype ie CV_16UC / 4 (would 4 be faster, 64 bits) - cv::Mat accumulator,outmat,output; // background accumulation + cv::Mat accumulator,outmat,hsvback,outchan,output; // background accumulation + int frameno; ofxCvColorImage currentFrame; ofxCvColorImage background; @@ -63,6 +70,8 @@ class testApp : public ofBaseApp{ float mogf; + int diffchannel; + /* ofxOpenCvUtilsForeground* fg; ofxOpenCvUtilsMeanShift* meanShift; -- cgit v1.2.3