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 987B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. ofVideoGrabber webcam;
  23. ofxCv::ContourFinder contour;
  24. cv::Point2f center;
  25. ofColor color;
  26. ofColor color_red_laser;
  27. int color_picked;
  28. int key_pressed;
  29. int i;
  30. int biggest_contour;
  31. unsigned int selection;
  32. int calibrated;
  33. float y_scale;
  34. float y_offset;
  35. float x_scale;
  36. float x_offset;
  37. POINT cp_top_left, cp_top_right, cp_bottom_left, cp_bottom_right;
  38. };