Changeset 17 for liacs/mss/project/colour-tracking.c
- Timestamp:
- Dec 1, 2009, 10:51:51 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
liacs/mss/project/colour-tracking.c
r15 r17 9 9 #include <highgui.h> 10 10 #include <stdio.h> 11 #include "xdo.h" 11 12 12 13 #define DEBUG 1 … … 15 16 #define GVALUE(x,y,step) (x*step+y*3+1) 16 17 #define BVALUE(x,y,step) (x*step+y*3+0) 18 19 /* XXX: Global variables */ 20 xdo_t *xdo; 17 21 18 22 /* Used for playing with bounderies, returned max value of the pair */ … … 67 71 int r, g, b; 68 72 int q; 73 int retval; 74 char arg1[4], arg2[4]; 69 75 70 76 … … 149 155 cvCopy(output,filter, NULL); 150 156 cvCircle(target, cvPoint(xmax, ymax), 10, CV_RGB(255,0,0),4, 8, 0); 157 xdo_mousemove(xdo,xmax,ymax); 151 158 152 159 … … 181 188 // Quick at 1.0.0, not needing in 2.0x anymore 182 189 int main(int argc, char *argv[]) { 183 return InitSystem(argc, argv); 190 int retval; 191 xdo = xdo_new(getenv("DISPLAY")); 192 retval = InitSystem(argc, argv); 193 xdo_free(xdo); 184 194 }
Note:
See TracChangeset
for help on using the changeset viewer.