Lines Matching refs:randInt
87 …matrix_type = types[INPUT][0] = types[OUTPUT][0]= types[REF_OUTPUT][0] = cvtest::randInt(rng)%2 ? … in get_test_array_types_and_sizes()
100 img_size.width = cvtest::randInt(rng) % MAX_X + 1; in prepare_test_case()
101 img_size.height = cvtest::randInt(rng) % MAX_Y + 1; in prepare_test_case()
103 center_principal_point = ((cvtest::randInt(rng) % 2)!=0); in prepare_test_case()
215 useCPlus = ((cvtest::randInt(rng) % 2)!=0); in get_test_array_types_and_sizes()
223 …types[INPUT][0] = types[OUTPUT][0] = types[REF_OUTPUT][0] = types[TEMP][0]= cvtest::randInt(rng)%2… in get_test_array_types_and_sizes()
225 types[INPUT][1] = cvtest::randInt(rng)%2 ? CV_64F : CV_32F; in get_test_array_types_and_sizes()
226 types[INPUT][2] = cvtest::randInt(rng)%2 ? CV_64F : CV_32F; in get_test_array_types_and_sizes()
227 types[INPUT][3] = cvtest::randInt(rng)%2 ? CV_64F : CV_32F; in get_test_array_types_and_sizes()
228 types[INPUT][4] = cvtest::randInt(rng)%2 ? CV_64F : CV_32F; in get_test_array_types_and_sizes()
230 …sizes[INPUT][0] = sizes[OUTPUT][0] = sizes[REF_OUTPUT][0] = sizes[TEMP][0]= cvtest::randInt(rng)%2… in get_test_array_types_and_sizes()
232 sizes[INPUT][4] = cvtest::randInt(rng)%2 ? cvSize(3,3) : cvSize(4,3); in get_test_array_types_and_sizes()
234 if (cvtest::randInt(rng)%2) in get_test_array_types_and_sizes()
236 if (cvtest::randInt(rng)%2) in get_test_array_types_and_sizes()
247 if (cvtest::randInt(rng)%2) in get_test_array_types_and_sizes()
266 useDstMat = (cvtest::randInt(rng) % 2) == 0; in prepare_test_case()
268 img_size.width = cvtest::randInt(rng) % MAX_X + 1; in prepare_test_case()
269 img_size.height = cvtest::randInt(rng) % MAX_Y + 1; in prepare_test_case()
303 if( cvtest::randInt(rng)%4 != 0 ) in prepare_test_case()
321 if (cvtest::randInt(rng)%2 == 0) // use identity new camera matrix in prepare_test_case()
363 zero_distortion = (cvtest::randInt(rng)%2) == 0 ? false : true; in prepare_test_case()
364 zero_new_cam = (cvtest::randInt(rng)%2) == 0 ? false : true; in prepare_test_case()
365 zero_R = (cvtest::randInt(rng)%2) == 0 ? false : true; in prepare_test_case()
625 useCPlus = ((cvtest::randInt(rng) % 2)!=0); in get_test_array_types_and_sizes()
629 types[INPUT][1] = cvtest::randInt(rng)%2 ? CV_64F : CV_32F; in get_test_array_types_and_sizes()
630 types[INPUT][2] = cvtest::randInt(rng)%2 ? CV_64F : CV_32F; in get_test_array_types_and_sizes()
631 types[INPUT][3] = cvtest::randInt(rng)%2 ? CV_64F : CV_32F; in get_test_array_types_and_sizes()
632 types[INPUT][4] = cvtest::randInt(rng)%2 ? CV_64F : CV_32F; in get_test_array_types_and_sizes()
638 if (cvtest::randInt(rng)%2) in get_test_array_types_and_sizes()
640 if (cvtest::randInt(rng)%2) in get_test_array_types_and_sizes()
651 if (cvtest::randInt(rng)%2) in get_test_array_types_and_sizes()
671 img_size.width = cvtest::randInt(rng) % MAX_X + 1; in prepare_test_case()
672 img_size.height = cvtest::randInt(rng) % MAX_Y + 1; in prepare_test_case()
676 mat_type = (cvtest::randInt(rng) % 2) == 0 ? CV_32FC1 : CV_16SC2; in prepare_test_case()
677 if ((cvtest::randInt(rng) % 4) == 0) in prepare_test_case()
679 if ((cvtest::randInt(rng) % 4) == 0) in prepare_test_case()
686 int typex = (cvtest::randInt(rng) % 2) == 0 ? CV_32FC1 : CV_16SC2; in prepare_test_case()
727 if( cvtest::randInt(rng)%4 != 0 ) in prepare_test_case()
772 zero_distortion = (cvtest::randInt(rng)%2) == 0 ? false : true; in prepare_test_case()
773 zero_new_cam = (cvtest::randInt(rng)%2) == 0 ? false : true; in prepare_test_case()
774 zero_R = (cvtest::randInt(rng)%2) == 0 ? false : true; in prepare_test_case()