Vision Touch Surface Library
 All Classes Files Functions Variables Pages
projectivemapping.h
Go to the documentation of this file.
1 #ifndef PROJECTIVEMAPPING_H
2 #define PROJECTIVEMAPPING_H
3 
4 #include "opencv2/highgui/highgui.hpp"
5 #include <opencv2/opencv.hpp>
6 #include <iostream>
7 
8 using namespace std;
9 using namespace cv;
10 
15 {
16 public:
18 
24  ProjectiveMapping(int width,int height);
25  ProjectiveMapping( const ProjectiveMapping & param );
26 
31  virtual void calculateMapping(const vector<Point2f> &quadrangle_corners);
32 
38  virtual void mapPoints(vector<Point2f> &points, vector<Point2f> &mappedPoints);
39 
45  virtual void mapPoints(Point2i &point, Point2i &mappedPoint);
46 
53  virtual void warpMatrix(Mat &matrix, Mat &warpedMatrix, Size &warpedSize);
54 
55 protected:
57 
58 private:
59  vector<Point2f> rect_corners;
60 
61 };
62 
63 #endif // PROJECTIVEMAPPING_H
64