diff options
Diffstat (limited to 'cvtest/src/testApp.h')
| -rw-r--r-- | cvtest/src/testApp.h | 11 |
1 files changed, 10 insertions, 1 deletions
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; |
