Newer
Older
#pragma once
#include "ofMain.h"
#include "ofxCv.h"
void setup();
void update();
void draw();
void mousePressed(int x, int y, int button);
void mouseMoved(int x, int y);
void keyPressed(int key);
void keyReleased(int key);
void mouseDragged(int x, int y, int button);
void mouseReleased(int x, int y, int button);
void mouseEntered(int x, int y);
ofxCv::ContourFinder contourFinder1;
ofxCv::ContourFinder contourFinder2;
ofColor targetColor1;
ofColor targetColor2;
ofParameter<float> threshold1;
ofParameter<float> threshold2;
ofParameter<bool> trackHs1;
ofParameter<bool> trackHs2;
vector<ofColor> targetColours;
vector<ofParameter<float>> thresholds;
vector<ofParameter<bool>> trackHues;
vector<ofParameter<bool>> changeColours;
vector<ofxCv::ContourFinder> contourFinders;
int num_colours = 5;
// projector class for second window display
shared_ptr<State> ss;
vector<bool> vn;
ofImage camImage;
ofPixels camPix;
/* ofRectangle rect; */
int xr, yr, wr, hr;
bool xyb, whb;