Changeset 229
- Timestamp:
- 10/12/08 16:32:25 (3 years ago)
- Location:
- trunk/software/rb/vision
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/software/rb/vision/main.c
r213 r229 86 86 /* Mark slopes */ 87 87 print_time("Marking slopes"); 88 //mark_slopes(out); // This currently segfaults88 mark_slopes(out); // This currently segfaults 89 89 90 90 /* Mark straint path */ -
trunk/software/rb/vision/vision.c
r213 r229 100 100 } 101 101 } 102 if ( n == 0) return 0;102 if ((double)n / (box.width * box.height) < 0.05) return 0; 103 103 go_linear_regression(xss, xdim, ys, n, 1, res, reg); 104 104 double rval = res[1]; … … 260 260 CvPoint start, end; 261 261 CvRect box = cvRect(1, 1, 500, 500); 262 for (box.x = 0; box.x < out->width; box.x += box.width) {263 for (box.y = 0; box.y < out->height; box.y += box.height) {262 for (box.x = 0; box.x + box.width < out->width; box.x += box.width/2) { 263 for (box.y = 0; box.y + box.height < out->height; box.y += box.height/2) { 264 264 //printf("checking box (%d,%d)â(%d-%d)\n", box.x, box.y, box.width, box.height); 265 265 slope = find_slope_in_box(out, box, ®);

