summaryrefslogtreecommitdiff
path: root/cvtest/src/testApp.h
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2012-05-17 15:51:07 +0100
committerTim Redfern <tim@eclectronics.org>2012-05-17 15:51:07 +0100
commit8bc09d4264575d2752374413a180bf9dc1b3b035 (patch)
treeae362434a29b48aa66d1811ab1dfd6146f65b536 /cvtest/src/testApp.h
parentdbf9692b03ac2485f771993184222f7170e71cf2 (diff)
keying options
Diffstat (limited to 'cvtest/src/testApp.h')
-rw-r--r--cvtest/src/testApp.h11
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;