Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include "ofMain.h"
- #include "ofxOpenCv.h"
- #include "ofxCv.h"
- class testApp : public ofBaseApp{
- public:
- // redeclaration of functions (declared in base class)
- void setup();
- void update();
- void draw();
- void keyPressed(int key);
- void trackRect();
- ofVideoGrabber vidGrabber;
- int camWidth, camHeight;
- unsigned char * colorImg;
- ofTexture videoTexture;
- unsigned char r,g,b; // red, green & blue
- ofPoint pos, pos2, pos3, pos4; // position for each of the 4 colors
- int n, n2, n3, n4; // counter for each of the 4 colors
- unsigned char result, result2, result3, result4;
- bool Adam, pic, cCirc, ValleRect; // declaring our different state booleans
- ofImage origImg, warpImg; // creating variable for our pictures
- vector<ofVec2f> origPoints, warpPoints; // vector of points representing the corners of the original and warped images
- bool homographyReady; // not in use for IP handin
- cv::Mat homography; // not in use for IP handin
- };
Advertisement
Add Comment
Please, Sign In to add comment