Lines Matching refs:randReal
107 double aspect_ratio = cvtest::randReal(rng)*0.6 + 0.7; in prepare_test_case()
110 a[2] = (img_size.width - 1)*0.5 + cvtest::randReal(rng)*10 - 5; in prepare_test_case()
111 a[5] = (img_size.height - 1)*0.5 + cvtest::randReal(rng)*10 - 5; in prepare_test_case()
112 a[0] = sz/(0.9 - cvtest::randReal(rng)*0.6); in prepare_test_case()
286 points[i].x = cvtest::randReal(rng)*img_size.width; in prepare_test_case()
287 points[i].y = cvtest::randReal(rng)*img_size.height; in prepare_test_case()
292 double aspect_ratio = cvtest::randReal(rng)*0.6 + 0.7; in prepare_test_case()
293 cam[2] = (img_size.width - 1)*0.5 + cvtest::randReal(rng)*10 - 5; in prepare_test_case()
294 cam[5] = (img_size.height - 1)*0.5 + cvtest::randReal(rng)*10 - 5; in prepare_test_case()
295 cam[0] = sz/(0.9 - cvtest::randReal(rng)*0.6); in prepare_test_case()
299 dist[0] = cvtest::randReal(rng)*0.06 - 0.03; in prepare_test_case()
300 dist[1] = cvtest::randReal(rng)*0.06 - 0.03; in prepare_test_case()
305 dist[2] = cvtest::randReal(rng)*0.004 - 0.002; in prepare_test_case()
306 dist[3] = cvtest::randReal(rng)*0.004 - 0.002; in prepare_test_case()
308 dist[4] = cvtest::randReal(rng)*0.004 - 0.002; in prepare_test_case()
328 proj[0] = cam[0] + (cvtest::randReal(rng) - (double)0.5)*0.2*cam[0]; //10% in prepare_test_case()
329 proj[4] = cam[4] + (cvtest::randReal(rng) - (double)0.5)*0.2*cam[4]; //10% in prepare_test_case()
330 proj[2] = cam[2] + (cvtest::randReal(rng) - (double)0.5)*0.3*img_size.width; //15% in prepare_test_case()
331 proj[5] = cam[5] + (cvtest::randReal(rng) - (double)0.5)*0.3*img_size.height; //15% in prepare_test_case()
337 proj[0] = cam[0] + (cvtest::randReal(rng) - (double)0.5)*0.2*cam[0]; //10% in prepare_test_case()
338 proj[5] = cam[4] + (cvtest::randReal(rng) - (double)0.5)*0.2*cam[4]; //10% in prepare_test_case()
339 proj[2] = cam[2] + (cvtest::randReal(rng) - (double)0.5)*0.3*img_size.width; //15% in prepare_test_case()
340 proj[6] = cam[5] + (cvtest::randReal(rng) - (double)0.5)*0.3*img_size.height; //15% in prepare_test_case()
342 proj[3] = (img_size.height + img_size.width - 1)*0.5 + cvtest::randReal(rng)*10 - 5; in prepare_test_case()
343 proj[7] = (img_size.height + img_size.width - 1)*0.5 + cvtest::randReal(rng)*10 - 5; in prepare_test_case()
344 proj[11] = (img_size.height + img_size.width - 1)*0.5 + cvtest::randReal(rng)*10 - 5; in prepare_test_case()
350 rotation.at<double>(0) = CV_PI*(cvtest::randReal(rng) - (double)0.5); // phi in prepare_test_case()
351 rotation.at<double>(1) = CV_PI*(cvtest::randReal(rng) - (double)0.5); // ksi in prepare_test_case()
352 rotation.at<double>(2) = CV_PI*(cvtest::randReal(rng) - (double)0.5); //khi in prepare_test_case()
710 points[i].x = cvtest::randReal(rng)*img_size.width; in prepare_test_case()
711 points[i].y = cvtest::randReal(rng)*img_size.height; in prepare_test_case()
716 double aspect_ratio = cvtest::randReal(rng)*0.6 + 0.7; in prepare_test_case()
717 cam[2] = (img_size.width - 1)*0.5 + cvtest::randReal(rng)*10 - 5; in prepare_test_case()
718 cam[5] = (img_size.height - 1)*0.5 + cvtest::randReal(rng)*10 - 5; in prepare_test_case()
719 cam[0] = sz/(0.9 - cvtest::randReal(rng)*0.6); in prepare_test_case()
723 dist[0] = cvtest::randReal(rng)*0.06 - 0.03; in prepare_test_case()
724 dist[1] = cvtest::randReal(rng)*0.06 - 0.03; in prepare_test_case()
729 dist[2] = cvtest::randReal(rng)*0.004 - 0.002; in prepare_test_case()
730 dist[3] = cvtest::randReal(rng)*0.004 - 0.002; in prepare_test_case()
732 dist[4] = cvtest::randReal(rng)*0.004 - 0.002; in prepare_test_case()
750 new_cam[0] = cam[0] + (cvtest::randReal(rng) - (double)0.5)*0.2*cam[0]; //10% in prepare_test_case()
751 new_cam[4] = cam[4] + (cvtest::randReal(rng) - (double)0.5)*0.2*cam[4]; //10% in prepare_test_case()
752 new_cam[2] = cam[2] + (cvtest::randReal(rng) - (double)0.5)*0.3*img_size.width; //15% in prepare_test_case()
753 new_cam[5] = cam[5] + (cvtest::randReal(rng) - (double)0.5)*0.3*img_size.height; //15% in prepare_test_case()
759 rotation.at<double>(0) = CV_PI/8*(cvtest::randReal(rng) - (double)0.5); // phi in prepare_test_case()
760 rotation.at<double>(1) = CV_PI/8*(cvtest::randReal(rng) - (double)0.5); // ksi in prepare_test_case()
761 rotation.at<double>(2) = CV_PI/3*(cvtest::randReal(rng) - (double)0.5); //khi in prepare_test_case()