• Home
  • Raw
  • Download

Lines Matching refs:box0

1143     CvBox2D box0, box;  member in CV_FitEllipseTest
1165 box0.center.x = (float)((low.val[0] + high.val[0])*0.5); in generate_point_set()
1166 box0.center.y = (float)((low.val[1] + high.val[1])*0.5); in generate_point_set()
1167 box0.size.width = (float)(MAX(high.val[0] - low.val[0], min_ellipse_size)*2); in generate_point_set()
1168 box0.size.height = (float)(MAX(high.val[1] - low.val[1], min_ellipse_size)*2); in generate_point_set()
1169 box0.angle = (float)(cvtest::randReal(rng)*180); in generate_point_set()
1170 a = cos(box0.angle*CV_PI/180.); in generate_point_set()
1171 b = sin(box0.angle*CV_PI/180.); in generate_point_set()
1173 if( box0.size.width > box0.size.height ) in generate_point_set()
1176 CV_SWAP( box0.size.width, box0.size.height, t ); in generate_point_set()
1203 double x = box0.size.height*0.5*(cos(angle) + (cvtest::randReal(rng)-0.5)*2*max_noise); in generate_point_set()
1204 double y = box0.size.width*0.5*(sin(angle) + (cvtest::randReal(rng)-0.5)*2*max_noise); in generate_point_set()
1205 p.x = (float)(box0.center.x + a*x + b*y); in generate_point_set()
1206 p.y = (float)(box0.center.y - b*x + a*y); in generate_point_set()
1265 if( fabs(box.center.x - box0.center.x) > 3 || in validate_test_results()
1266 fabs(box.center.y - box0.center.y) > 3 || in validate_test_results()
1267 fabs(box.size.width - box0.size.width) > 0.1*fabs(box0.size.width) || in validate_test_results()
1268 fabs(box.size.height - box0.size.height) > 0.1*fabs(box0.size.height) ) in validate_test_results()
1273 box0.center.x, box0.center.y, box0.size.width, box0.size.height ); in validate_test_results()
1278 diff_angle = fabs(box0.angle - box.angle); in validate_test_results()
1282 if( box0.size.height >= 1.3*box0.size.width && diff_angle > 30 ) in validate_test_results()
1285 box.angle, box0.angle ); in validate_test_results()
1394 box0.center.x = (float)center.x; in generate_point_set()
1395 box0.center.y = (float)center.y; in generate_point_set()
1396 box0.size.width = (float)width*2; in generate_point_set()
1397 box0.size.height = (float)height*2; in generate_point_set()
1398 box0.angle = (float)angle; in generate_point_set()