Changeset 10 for liacs/mss/project/colour-tracking.c
- Timestamp:
- Nov 30, 2009, 10:38:03 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
liacs/mss/project/colour-tracking.c
r9 r10 150 150 // detect 'square' 151 151 p = 0; 152 const int SIZE = 2;152 int SIZE = 3; 153 153 for (i = m; i < min(m+SIZE,height); i++) 154 154 { … … 163 163 } 164 164 165 166 SIZE = 6; 165 167 /* Make sure envirionment is 'low' */ 166 168 for (i = max(m-SIZE,0); i < m; i++) … … 189 191 if (p > SIZE) 190 192 { 191 printf("%ix%i=%i\n",n,m,value);193 //printf("%ix%i=%i\n",n,m,value); 192 194 cmax = value; 193 195 xmax = n; … … 199 201 200 202 // Prepare combined output 201 cvCopy(filter, target, NULL); 203 // Some way of making the picture more pretty 204 //cvSmooth(filter,target, CV_MEDIAN, 3, 3, 3, 3); 205 cvCopy(filter,target, NULL); 202 206 cvCircle(target, cvPoint(xmax, ymax), 10, CV_RGB(255,0,0),4, 8, 0); 203 207
Note:
See TracChangeset
for help on using the changeset viewer.