Vision Touch Surface Library
 All Classes Files Functions Variables Pages
leaphandler.h
Go to the documentation of this file.
1 #ifndef LEAPHANDLER_H
2 #define LEAPHANDLER_H
3 
4 #include <iostream>
5 
6 #include <opencv2/opencv.hpp>
7 #include <highgui.h>
8 
9 using namespace std;
10 using namespace cv;
11 
12 #include "Leap.h"
13 
14 #include "leapmapping.h"
15 
17 {
18 
19  Leap::Frame frame;
20 
21 public:
22  LeapHandler();
23  bool determineTouch(Leap::Vector position);
24 
25  virtual void waitFrame();
26 
27  virtual bool findBestMatchOnCurrentFrame( Point & inputWorld, float radius, LeapMapping & leap2world, Point3i &match );
28 
29  float depthThresh;
30  Leap::Controller leapSensor;
31 
32 };
33 
34 #endif // LEAPHANDLER_H
35