/[opencvs]/eyes/square_to_quad.h
ViewVC logotype

Contents of /eyes/square_to_quad.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations)
Mon Nov 12 07:33:44 2012 UTC (5 years, 8 months ago) by hib
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/plain
cleanup
1 /* ripped off from http://code.google.com/p/wiimotetuio/source/browse/trunk/WiimoteTUIO/Warper.cs */
2
3 struct Warper
4 {
5 double srcX[4];
6 double srcY[4];
7 double dstX[4];
8 double dstY[4];
9 double srcMat[16];
10 double dstMat[16];
11 double warpMat[16];
12 int dirty;
13 };
14
15
16 void setIdentity( struct Warper *w);
17 void setSource(struct Warper *w, double x0,
18 double y0,
19 double x1,
20 double y1,
21 double x2,
22 double y2,
23 double x3,
24 double y3);
25 void setDestination(struct Warper *w,double x0,
26 double y0,
27 double x1,
28 double y1,
29 double x2,
30 double y2,
31 double x3,
32 double y3);
33 void computeWarp(struct Warper *w);
34 void multMats(double * srcMat, double * dstMat, double * resMat);
35 void computeSquareToQuad( double x0,
36 double y0,
37 double x1,
38 double y1,
39 double x2,
40 double y2,
41 double x3,
42 double y3,
43 double* mat);
44 void computeQuadToSquare( double x0,
45 double y0,
46 double x1,
47 double y1,
48 double x2,
49 double y2,
50 double x3,
51 double y3,
52 double* mat);
53 void warp(struct Warper *w,double srcX, double srcY,double *dstX,double *dstY);
54 void warp2(double * mat, double srcX, double srcY, double *dstX, double *dstY);

  ViewVC Help
Powered by ViewVC 1.1.5