Lines Matching refs:box0
64 CvBox2D box0; member in CV_TrackBaseTest
118 double cx = box0.center.x; in generate_object()
119 double cy = box0.center.y; in generate_object()
120 double width = box0.size.width*0.5; in generate_object()
121 double height = box0.size.height*0.5; in generate_object()
122 double angle = box0.angle*CV_PI/180.; in generate_object()
161 …box0.size.width = (float)exp((cvtest::randReal(rng) * (max_log_size - min_log_size) + min_log_size… in prepare_test_case()
162 …box0.size.height = (float)exp((cvtest::randReal(rng) * (max_log_size - min_log_size) + min_log_siz… in prepare_test_case()
163 box0.angle = (float)(cvtest::randReal(rng)*180.); in prepare_test_case()
165 if( box0.size.width > box0.size.height ) in prepare_test_case()
168 CV_SWAP( box0.size.width, box0.size.height, t ); in prepare_test_case()
171 m = MAX( box0.size.width, box0.size.height ); in prepare_test_case()
177 box0.center.x = (float)(img_size.width*0.5 + (cvtest::randReal(rng)-0.5)*(img_size.width - m)); in prepare_test_case()
178 … box0.center.y = (float)(img_size.height*0.5 + (cvtest::randReal(rng)-0.5)*(img_size.height - m)); in prepare_test_case()
241 m = MAX(box0.size.width,box0.size.height)*0.8; in prepare_test_case()
242 init_rect.x = cvFloor(box0.center.x - m*(0.45 + cvtest::randReal(rng)*0.2)); in prepare_test_case()
243 init_rect.y = cvFloor(box0.center.y - m*(0.45 + cvtest::randReal(rng)*0.2)); in prepare_test_case()
244 … init_rect.width = cvCeil(box0.center.x + m*(0.45 + cvtest::randReal(rng)*0.2) - init_rect.x); in prepare_test_case()
245 … init_rect.height = cvCeil(box0.center.y + m*(0.45 + cvtest::randReal(rng)*0.2) - init_rect.y); in prepare_test_case()
273 double m = MAX(box0.size.width, box0.size.height), delta; in validate_test_results()
290 if( fabs(box.size.width - box0.size.width) > box0.size.width*0.2 || in validate_test_results()
291 fabs(box.size.height - box0.size.height) > box0.size.height*0.3 ) in validate_test_results()
294 box.size.width, box.size.height, box0.size.width, box0.size.height ); in validate_test_results()
299 if( fabs(box.center.x - box0.center.x) > m*0.1 || in validate_test_results()
300 fabs(box.center.y - box0.center.y) > m*0.1 ) in validate_test_results()
303 box.center.x, box.center.y, box0.center.x, box0.center.y ); in validate_test_results()
311 diff_angle = fabs(box0.angle - box.angle); in validate_test_results()
312 diff_angle = MIN( diff_angle, fabs(box0.angle - box.angle + 180)); in validate_test_results()
314 if( fabs(diff_angle) > 30 && box0.size.height > box0.size.width*1.2 ) in validate_test_results()
317 box.angle, box0.angle ); in validate_test_results()
324 if( comp.rect.x < box0.center.x - delta || in validate_test_results()
325 comp.rect.y < box0.center.y - delta || in validate_test_results()
326 comp.rect.x + comp.rect.width > box0.center.x + delta || in validate_test_results()
327 comp.rect.y + comp.rect.height > box0.center.y + delta ) in validate_test_results()
332 … box0.center.x - delta, box0.center.y - delta, box0.center.x + delta, box0.center.y + delta ); in validate_test_results()
408 m = (box0.size.width + box0.size.height)*0.5; in prepare_test_case()
409 init_rect.x = cvFloor(box0.center.x - m*(0.4 + cvtest::randReal(rng)*0.2)); in prepare_test_case()
410 init_rect.y = cvFloor(box0.center.y - m*(0.4 + cvtest::randReal(rng)*0.2)); in prepare_test_case()
411 init_rect.width = cvCeil(box0.center.x + m*(0.4 + cvtest::randReal(rng)*0.2) - init_rect.x); in prepare_test_case()
412 … init_rect.height = cvCeil(box0.center.y + m*(0.4 + cvtest::randReal(rng)*0.2) - init_rect.y); in prepare_test_case()
440 double m = MAX(box0.size.width, box0.size.height), delta; in validate_test_results()
452 if( fabs(c.x - box0.center.x) > m*0.1 || in validate_test_results()
453 fabs(c.y - box0.center.y) > m*0.1 ) in validate_test_results()
456 c.x, c.y, box0.center.x, box0.center.y ); in validate_test_results()
463 if( comp.rect.x < box0.center.x - delta || in validate_test_results()
464 comp.rect.y < box0.center.y - delta || in validate_test_results()
465 comp.rect.x + comp.rect.width > box0.center.x + delta || in validate_test_results()
466 comp.rect.y + comp.rect.height > box0.center.y + delta ) in validate_test_results()
471 … box0.center.x - delta, box0.center.y - delta, box0.center.x + delta, box0.center.y + delta ); in validate_test_results()