/external/opencv3/modules/calib3d/test/ |
D | test_undistort.cpp | 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() [all …]
|
D | test_cornerssubpix.cpp | 228 double fx = cvtest::randReal(rng)*max_focus_length; in generateIntrinsicParams() 229 double fy = fx + cvtest::randReal(rng)*max_focus_diff; in generateIntrinsicParams() 233 double k1 = 0.5*cvtest::randReal(rng); in generateIntrinsicParams() 234 double k2 = 0.05*cvtest::randReal(rng); in generateIntrinsicParams() 235 double p1 = 0.05*cvtest::randReal(rng); in generateIntrinsicParams() 236 double p2 = 0.05*cvtest::randReal(rng); in generateIntrinsicParams()
|
D | test_posit.cpp | 131 angleX = (float)(cvtest::randReal(rng)*2*CV_PI); in run() 132 angleY = (float)(cvtest::randReal(rng)*2*CV_PI); in run() 133 angleZ = (float)(cvtest::randReal(rng)*2*CV_PI); in run() 157 true_translation->data.fl[2] = (float)(cvtest::randReal(rng)*(2*flFocalLength-40) + 60); in run() 158 … true_translation->data.fl[0] = (float)((cvtest::randReal(rng)*2-1)*true_translation->data.fl[2]); in run() 159 … true_translation->data.fl[1] = (float)((cvtest::randReal(rng)*2-1)*true_translation->data.fl[2]); in run()
|
D | test_fundam.cpp | 631 r[0] = cvtest::randReal(rng)*CV_PI*2; in fill_array() 632 r[1] = cvtest::randReal(rng)*CV_PI*2; in fill_array() 633 r[2] = cvtest::randReal(rng)*CV_PI*2; in fill_array() 833 double pt_count_exp = cvtest::randReal(rng)*6 + 1; in get_test_array_types_and_sizes() 918 p[i] = cvtest::randReal(rng)*cube_size; in fill_array() 919 p[i+1] = cvtest::randReal(rng)*cube_size; in fill_array() 920 p[i+2] = cvtest::randReal(rng)*cube_size + cube_size; in fill_array() 929 r[0] = cvtest::randReal(rng)*CV_PI*2; in fill_array() 930 r[1] = cvtest::randReal(rng)*CV_PI*2; in fill_array() 931 r[2] = cvtest::randReal(rng)*CV_PI*2; in fill_array() [all …]
|
D | test_homography.cpp | 258 src_data[2*i] = (float)cvtest::randReal(rng)*image_size; in run() 259 src_data[2*i+1] = (float)cvtest::randReal(rng)*image_size; in run() 279 double fi = cvtest::randReal(rng)*2*CV_PI; in run() 281 double t_x = cvtest::randReal(rng)*sqrt(image_size*1.0), in run() 282 t_y = cvtest::randReal(rng)*sqrt(image_size*1.0); in run()
|
D | test_modelest.cpp | 197 double startWeight = cvtest::randReal(rng);
|
D | test_cameracalibration.cpp | 159 r[0] = cvtest::randReal(rng)*CV_PI*2; 160 r[1] = cvtest::randReal(rng)*CV_PI*2; 161 r[2] = cvtest::randReal(rng)*CV_PI*2;
|
/external/opencv3/modules/video/test/ |
D | test_camshift.cpp | 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() 172 img_size.width = cvRound(cvtest::randReal(rng)*m*0.5 + m + 1); in prepare_test_case() 173 img_size.height = cvRound(cvtest::randReal(rng)*m*0.5 + m + 1); 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() 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() [all …]
|
D | test_kalman.cpp | 106 Temp->data.fl[j]= (float)(t+(cvtest::randReal(rng)*2-1)*max_noise); in run()
|
D | test_accum.cpp | 88 alpha = cvtest::randReal(rng); in get_test_array_types_and_sizes()
|
/external/opencv3/modules/imgproc/test/ |
D | test_imgwarp.cpp | 522 center.x = (float)((cvtest::randReal(rng)*1.2 - 0.1)*src.cols); in prepare_test_case() 523 center.y = (float)((cvtest::randReal(rng)*1.2 - 0.1)*src.rows); in prepare_test_case() 524 angle = cvtest::randReal(rng)*360; in prepare_test_case() 764 double aspect_ratio = cvtest::randReal(rng)*0.6 + 0.7; in prepare_test_case() 765 a[2] = (src.cols - 1)*0.5 + cvtest::randReal(rng)*10 - 5; in prepare_test_case() 766 a[5] = (src.rows - 1)*0.5 + cvtest::randReal(rng)*10 - 5; in prepare_test_case() 767 a[0] = sz/(0.9 - cvtest::randReal(rng)*0.6); in prepare_test_case() 769 k[0] = cvtest::randReal(rng)*0.06 - 0.03; in prepare_test_case() 770 k[1] = cvtest::randReal(rng)*0.06 - 0.03; in prepare_test_case() 773 k[2] = cvtest::randReal(rng)*0.004 - 0.002; in prepare_test_case() [all …]
|
D | test_thresh.cpp | 87 thresh_val = (float)(cvtest::randReal(rng)*350. - 50.); in get_test_array_types_and_sizes() 88 max_val = (float)(cvtest::randReal(rng)*350. - 50.); in get_test_array_types_and_sizes() 96 thresh_val = (float)(cvtest::randReal(rng)*(max_val - min_val) + min_val); in get_test_array_types_and_sizes() 97 max_val = (float)(cvtest::randReal(rng)*(max_val - min_val) + min_val); in get_test_array_types_and_sizes() 103 thresh_val = (float)(cvtest::randReal(rng)*1000. - 500.); in get_test_array_types_and_sizes() 104 max_val = (float)(cvtest::randReal(rng)*1000. - 500.); in get_test_array_types_and_sizes()
|
D | test_convhull.cpp | 326 pi[k] = cvRound(cvtest::randReal(rng)*a[k] + b[k]); in generate_point_set() 329 pf[k] = (float)(cvtest::randReal(rng)*a[k] + b[k]); in generate_point_set() 345 …size = cvRound( exp((cvtest::randReal(rng) * (max_log_size - min_log_size) + min_log_size)*CV_LOG2… in prepare_test_case() 369 low.val[i] = (cvtest::randReal(rng)-0.5)*low_high_range*2; in prepare_test_case() 370 high.val[i] = (cvtest::randReal(rng)-0.5)*low_high_range*2; in prepare_test_case() 1169 box0.angle = (float)(cvtest::randReal(rng)*180); in generate_point_set() 1202 double angle = cvtest::randReal(rng)*CV_PI*2; 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() 1504 t = (float)((cvtest::randReal(rng)-0.5)*low_high_range*2); in generate_point_set() [all …]
|
D | test_histograms.cpp | 145 hist_size = exp(cvtest::randReal(rng)*max_log_size*CV_LOG2); in get_hist_params() 160 img_size.width = cvRound( exp(cvtest::randReal(rng) * img_max_log_size * CV_LOG2) ); in get_hist_params() 161 img_size.height = cvRound( exp(cvtest::randReal(rng) * img_max_log_size * CV_LOG2) ); in get_hist_params() 271 cvSetRealND(arr, idx, cvtest::randReal(rng)*gen_hist_max_val); in init_hist() 618 min_val0 = (float)(-cvtest::randReal(rng)*10 - FLT_EPSILON); in init_hist() 619 max_val0 = (float)(cvtest::randReal(rng)*10 + FLT_EPSILON + gen_hist_max_val); in init_hist() 717 factor = cvtest::randReal(rng)*10 + 0.1; in prepare_test_case() 839 threshold = cvtest::randReal(rng)*gen_hist_max_val; in prepare_test_case() 1426 double val = cvtest::randReal(rng)*(high - low) + low; in prepare_test_case() 1654 double val = cvtest::randReal(rng)*(high - low) + low; in prepare_test_case()
|
D | test_contours.cpp | 216 blob_count = cvRound(exp(cvtest::randReal(rng)*max_log_blob_count*CV_LOG2)); in prepare_test_case() 218 img_size.width = cvRound(exp((cvtest::randReal(rng)* in prepare_test_case() 220 img_size.height = cvRound(exp((cvtest::randReal(rng)* in prepare_test_case()
|
D | test_canny.cpp | 94 threshold1 = cvtest::randReal(rng)*thresh_range; in get_test_array_types_and_sizes() 95 threshold2 = cvtest::randReal(rng)*thresh_range*0.3; in get_test_array_types_and_sizes()
|
D | test_floodfill.cpp | 141 new_val.val[i] = cvtest::randReal(rng)*255; in get_test_array_types_and_sizes()
|
D | test_filter.cpp | 103 double val = exp( cvtest::randReal(rng)*10 - 4 ); in get_minmax_bounds() 762 sigma = exp(cvtest::randReal(rng)*5-2); in get_test_array_types_and_sizes()
|
/external/opencv3/modules/ts/src/ |
D | ts_arrtest.cpp | 109 val = randReal(rng) * (max_log_array_size - min_log_array_size) + min_log_array_size; in get_test_array_types_and_sizes() 111 val = randReal(rng) * (max_log_array_size - min_log_array_size) + min_log_array_size; in get_test_array_types_and_sizes()
|
D | ts_func.cpp | 528 double val = randReal(rng)*scale[k] + delta[k]; in randUniFlt_()
|
/external/opencv3/modules/core/test/ |
D | test_ds.cpp | 534 t = cvtest::randReal(rng)*(max_log_elem_size - min_log_elem_size) + min_log_elem_size; in test_multi_create() 998 t = cvtest::randReal(rng)*(max_log_storage_block_size - min_log_storage_block_size) in run() 1086 t = cvtest::randReal(rng)*(max_log_storage_block_size - min_log_storage_block_size) in run() 1384 …t = cvtest::randReal(rng)*(max_log_storage_block_size - min_log_storage_block_size) + min_log_stor… in run() 1389 … t = cvtest::randReal(rng)*(max_log_elem_size - min_log_elem_size) + min_log_elem_size; in run() 1808 …t = cvtest::randReal(rng)*(max_log_storage_block_size - min_log_storage_block_size) + min_log_stor… in run() 1820 … t = cvtest::randReal(rng)*(max_log_elem_size - min_log_elem_size) + min_log_elem_size; in run() 1925 …t = cvtest::randReal(rng)*(max_log_storage_block_size - min_log_storage_block_size) + min_log_stor… in run()
|
D | test_io.cpp | 17 double val = cvtest::randReal(rng)*(b - a) + a; in cvTsGetRandomSparseMat() 111 double test_real = (cvtest::randInt(rng)%2?1:-1)*exp(cvtest::randReal(rng)*18-9); in run()
|
D | test_math.cpp | 113 power = i == 16 ? 1./3 : i == 15 ? 0.5 : i == 14 ? -0.5 : cvtest::randReal(rng)*10 - 5; in get_test_array_types_and_sizes() 2243 r[j++] = cvtest::randReal(rng) * range; in run() 2246 r[j] = complex_type(cvtest::randReal(rng) * range, in run() 2247 cvtest::randReal(rng) * range + 1); in run()
|
/external/opencv3/modules/ts/include/opencv2/ |
D | ts.hpp | 66 inline double randReal( RNG& rng ) in randReal() function
|