You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ofApp.h 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #pragma once
  2. #include "ofMain.h"
  3. #include "ofxOpenCv.h"
  4. #include "ofxCv.h"
  5. #include "windows.h"
  6. class ofApp : public ofBaseApp{
  7. public:
  8. void setup();
  9. void update();
  10. void draw();
  11. void keyPressed(int key);
  12. void keyReleased(int key);
  13. void mouseMoved(int x, int y );
  14. void mouseDragged(int x, int y, int button);
  15. void mousePressed(int x, int y, int button);
  16. void mouseReleased(int x, int y, int button);
  17. void mouseEntered(int x, int y);
  18. void mouseExited(int x, int y);
  19. void windowResized(int w, int h);
  20. void dragEvent(ofDragInfo dragInfo);
  21. void gotMessage(ofMessage msg);
  22. void scaleRectangel(void);
  23. void scaleTrapeze(void);
  24. ofVideoGrabber webcam;
  25. ofxCv::ContourFinder contour;
  26. cv::Point2f center;
  27. ofColor color;
  28. ofColor color_red_laser;
  29. int color_picked;
  30. int key_pressed;
  31. int i;
  32. int biggest_contour;
  33. unsigned int selection;
  34. int calibrated;
  35. float y_scale;
  36. float y_offset;
  37. float x_scale;
  38. float x_offset;
  39. float left_pitch;
  40. float right_pitch;
  41. float middle;
  42. POINT cp_top_left, cp_top_right, cp_bottom_left, cp_bottom_right, cp_cursor_position;
  43. };