Guest User

Untitled

a guest
Dec 7th, 2012
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. #pragma once
  2. #include "ofMain.h"
  3. #include "ofxOpenCv.h"
  4. #include "ofxCv.h"
  5.  
  6. class testApp : public ofBaseApp{
  7.  
  8. public:
  9.  
  10. // redeclaration of functions (declared in base class)
  11. void setup();
  12. void update();
  13. void draw();
  14.  
  15. void keyPressed(int key);
  16. void trackRect();
  17.  
  18. ofVideoGrabber vidGrabber;
  19. int camWidth, camHeight;
  20. unsigned char * colorImg;
  21. ofTexture videoTexture;
  22.  
  23. unsigned char r,g,b; // red, green & blue
  24. ofPoint pos, pos2, pos3, pos4; // position for each of the 4 colors
  25. int n, n2, n3, n4; // counter for each of the 4 colors
  26. unsigned char result, result2, result3, result4;
  27. bool Adam, pic, cCirc, ValleRect; // declaring our different state booleans
  28.  
  29. ofImage origImg, warpImg; // creating variable for our pictures
  30. vector<ofVec2f> origPoints, warpPoints; // vector of points representing the corners of the original and warped images
  31.  
  32. bool homographyReady; // not in use for IP handin
  33. cv::Mat homography; // not in use for IP handin
  34. };
Advertisement
Add Comment
Please, Sign In to add comment