blob: 264de8ac608a5449574bd776f39fd7717991bd8e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
#pragma once
#include "ofMain.h"
#include "ofxOpenCv.h"
#include "ofxKinect.h"
#include "imageStore.h"
#include "buttonChecker.h"
#define MODE_COLOURTILES 0
#define MODE_DEPTH 1
#define MODE_COMPONENTS 2
#define MODE_DRAWINSTAGRAM 3
#define MODE_FROZEN 4
#define NUM_MODES 3
//do we need the extend thing?
class ofApp : public ofBaseApp {
public:
void setup();
void update();
void draw();
void exit();
void keyPressed(int key);
void mouseDragged(int x, int y, int button);
void mousePressed(int x, int y, int button);
void mouseReleased(int x, int y, int button);
void windowResized(int w, int h);
imageStore store;
buttonChecker button;
int mode,farThreshold,angle;
ofxCvColorImage colourImage;
ofxCvGrayscaleImage depthImage,depthImage2;
ofxKinect kinect;
//ofxCvFloatImage floatImage;
float* floatImage;
float* tiledata;
float* frametiledata;
ofImage screenleft,screenright,snap;
float frozentime,snaptime;
bool fullscreen;
};
|