uniform 2108 apps/traincascade/old_ml_tree.cpp labels[i] = i < k ? i : r->uniform(0, k); uniform 135 modules/calib3d/src/ptsetreg.cpp idx_i = idx[i] = rng.uniform(0, count); uniform 150 modules/calib3d/src/ptsetreg.cpp i = rng.uniform(0, i+1); uniform 845 modules/calib3d/test/test_cameracalibration.cpp fx = cameraMatrix.at<double>(0,0) = rng.uniform( fcMinVal, fcMaxVal ); uniform 846 modules/calib3d/test/test_cameracalibration.cpp fy = cameraMatrix.at<double>(1,1) = rng.uniform( fcMinVal, fcMaxVal ); uniform 847 modules/calib3d/test/test_cameracalibration.cpp cx = cameraMatrix.at<double>(0,2) = rng.uniform( fcMinVal, fcMaxVal ); uniform 848 modules/calib3d/test/test_cameracalibration.cpp cy = cameraMatrix.at<double>(1,2) = rng.uniform( fcMinVal, fcMaxVal ); uniform 1043 modules/calib3d/test/test_cameracalibration.cpp rvec(0,0) = rng.uniform( rMinVal, rMaxVal ); uniform 1044 modules/calib3d/test/test_cameracalibration.cpp rvec(0,1) = rng.uniform( rMinVal, rMaxVal ); uniform 1045 modules/calib3d/test/test_cameracalibration.cpp rvec(0,2) = rng.uniform( rMinVal, rMaxVal ); uniform 1048 modules/calib3d/test/test_cameracalibration.cpp tvec(0,0) = rng.uniform( tMinVal, tMaxVal ); uniform 1049 modules/calib3d/test/test_cameracalibration.cpp tvec(0,1) = rng.uniform( tMinVal, tMaxVal ); uniform 1050 modules/calib3d/test/test_cameracalibration.cpp tvec(0,2) = rng.uniform( tMinVal, tMaxVal ); uniform 1055 modules/calib3d/test/test_cameracalibration.cpp float z = rng.uniform( zMinVal, zMaxVal ); uniform 1057 modules/calib3d/test/test_cameracalibration.cpp point.at<float>(0,0) = (rng.uniform(2.f,(float)(imgSize.width-2)) - cameraMatrix(0,2)) / cameraMatrix(0,0) * z; uniform 1058 modules/calib3d/test/test_cameracalibration.cpp point.at<float>(0,1) = (rng.uniform(2.f,(float)(imgSize.height-2)) - cameraMatrix(1,2)) / cameraMatrix(1,1) * z; uniform 86 modules/calib3d/test/test_chessboardgenerator.cpp n[0] = rng.uniform(-1.f, 1.f); uniform 87 modules/calib3d/test/test_chessboardgenerator.cpp n[1] = rng.uniform(-1.f, 1.f); uniform 88 modules/calib3d/test/test_chessboardgenerator.cpp n[2] = rng.uniform(-1.f, 1.f); uniform 190 modules/calib3d/test/test_chessboardgenerator.cpp float d1 = static_cast<float>(rng.uniform(0.1, 10.0)); uniform 191 modules/calib3d/test/test_chessboardgenerator.cpp float ah = static_cast<float>(rng.uniform(-fovx/2 * cov, fovx/2 * cov) * CV_PI / 180); uniform 192 modules/calib3d/test/test_chessboardgenerator.cpp float av = static_cast<float>(rng.uniform(-fovy/2 * cov, fovy/2 * cov) * CV_PI / 180); uniform 255 modules/calib3d/test/test_chessboardgenerator.cpp float d1 = static_cast<float>(rng.uniform(0.1, 10.0)); uniform 256 modules/calib3d/test/test_chessboardgenerator.cpp float ah = static_cast<float>(rng.uniform(-fovx/2 * cov, fovx/2 * cov) * CV_PI / 180); uniform 257 modules/calib3d/test/test_chessboardgenerator.cpp float av = static_cast<float>(rng.uniform(-fovy/2 * cov, fovy/2 * cov) * CV_PI / 180); uniform 88 modules/calib3d/test/test_solvepnp_ransac.cpp cameraMatrix.at<double>(0,0) = rng.uniform(fcMinVal, fcMaxVal); uniform 89 modules/calib3d/test/test_solvepnp_ransac.cpp cameraMatrix.at<double>(1,1) = rng.uniform(fcMinVal, fcMaxVal); uniform 90 modules/calib3d/test/test_solvepnp_ransac.cpp cameraMatrix.at<double>(0,2) = rng.uniform(fcMinVal, fcMaxVal); uniform 91 modules/calib3d/test/test_solvepnp_ransac.cpp cameraMatrix.at<double>(1,2) = rng.uniform(fcMinVal, fcMaxVal); uniform 99 modules/calib3d/test/test_solvepnp_ransac.cpp distCoeffs.at<double>(i,0) = rng.uniform(0.0, 1.0e-6); uniform 110 modules/calib3d/test/test_solvepnp_ransac.cpp rvec.at<double>(i,0) = rng.uniform(minVal, maxVal); uniform 111 modules/calib3d/test/test_solvepnp_ransac.cpp tvec.at<double>(i,0) = rng.uniform(minVal, maxVal/10); uniform 136 modules/calib3d/test/test_solvepnp_ransac.cpp projectedPoints[i] = projectedPoints[rng.uniform(0,(int)points.size()-1)]; uniform 50 modules/calib3d/test/test_undistort_points.cpp cameraMatrix.at<double>(0,0) = rng.uniform(fcMinVal, fcMaxVal); uniform 51 modules/calib3d/test/test_undistort_points.cpp cameraMatrix.at<double>(1,1) = rng.uniform(fcMinVal, fcMaxVal); uniform 52 modules/calib3d/test/test_undistort_points.cpp cameraMatrix.at<double>(0,2) = rng.uniform(fcMinVal, fcMaxVal); uniform 53 modules/calib3d/test/test_undistort_points.cpp cameraMatrix.at<double>(1,2) = rng.uniform(fcMinVal, fcMaxVal); uniform 60 modules/calib3d/test/test_undistort_points.cpp distCoeffs.at<double>(i,0) = rng.uniform(0.0, 1.0e-3); uniform 2696 modules/core/include/opencv2/core.hpp int uniform(int a, int b); uniform 2698 modules/core/include/opencv2/core.hpp float uniform(float a, float b); uniform 2700 modules/core/include/opencv2/core.hpp double uniform(double a, double b); uniform 2776 modules/core/include/opencv2/core.hpp int uniform(int a, int b); uniform 2780 modules/core/include/opencv2/core.hpp float uniform(float a, float b); uniform 2784 modules/core/include/opencv2/core.hpp double uniform(double a, double b); uniform 345 modules/core/include/opencv2/core/operations.hpp inline unsigned RNG::operator ()(unsigned N) { return (unsigned)uniform(0,N); } uniform 39 modules/core/perf/perf_math.cpp dims = rng.uniform(1, MAX_DIM+1); uniform 40 modules/core/perf/perf_math.cpp N = rng.uniform(1, MAX_POINTS+1); uniform 41 modules/core/perf/perf_math.cpp N0 = rng.uniform(1, MAX(N/10, 2)); uniform 42 modules/core/perf/perf_math.cpp K = rng.uniform(1, N+1); uniform 49 modules/core/perf/perf_math.cpp data0.row(rng.uniform(0, N0)).copyTo(data.row(i)); uniform 162 modules/core/test/ocl/test_arithm.cpp val = cv::Scalar(rng.uniform(-100.0, 100.0), rng.uniform(-100.0, 100.0), uniform 163 modules/core/test/ocl/test_arithm.cpp rng.uniform(-100.0, 100.0), rng.uniform(-100.0, 100.0)); uniform 167 modules/core/test/ocl/test_arithm.cpp val_in_range = cv::Scalar(rng.uniform(minV, maxV), rng.uniform(minV, maxV), uniform 168 modules/core/test/ocl/test_arithm.cpp rng.uniform(minV, maxV), rng.uniform(minV, maxV)); uniform 1515 modules/core/test/ocl/test_arithm.cpp val1 = cv::Scalar(rng.uniform(-100.0, 100.0), rng.uniform(-100.0, 100.0), uniform 1516 modules/core/test/ocl/test_arithm.cpp rng.uniform(-100.0, 100.0), rng.uniform(-100.0, 100.0)); uniform 1517 modules/core/test/ocl/test_arithm.cpp val2 = cv::Scalar(rng.uniform(-100.0, 100.0), rng.uniform(-100.0, 100.0), uniform 1518 modules/core/test/ocl/test_arithm.cpp rng.uniform(-100.0, 100.0), rng.uniform(-100.0, 100.0)); uniform 1589 modules/core/test/ocl/test_arithm.cpp val = cv::Scalar(rng.uniform(-100.0, 100.0), rng.uniform(-100.0, 100.0), uniform 1590 modules/core/test/ocl/test_arithm.cpp rng.uniform(-100.0, 100.0), rng.uniform(-100.0, 100.0)); uniform 49 modules/core/test/test_arithm.cpp alpha = exp(rng.uniform(-0.5, 0.1)*m*2*CV_LOG2); uniform 50 modules/core/test/test_arithm.cpp alpha *= rng.uniform(0, 2) ? 1 : -1; uniform 54 modules/core/test/test_arithm.cpp beta = exp(rng.uniform(-0.5, 0.1)*m*2*CV_LOG2); uniform 55 modules/core/test/test_arithm.cpp beta *= rng.uniform(0, 2) ? 1 : -1; uniform 62 modules/core/test/test_arithm.cpp gamma[i] = exp(rng.uniform(-1, 6)*m*CV_LOG2); uniform 63 modules/core/test/test_arithm.cpp gamma[i] *= rng.uniform(0, 2) ? 1 : -1; uniform 415 modules/core/test/test_arithm.cpp cmpop = rng.uniform(0, 6); uniform 443 modules/core/test/test_arithm.cpp cmpop = rng.uniform(0, 6); uniform 729 modules/core/test/test_arithm.cpp if( rng.uniform(0, 2) ) uniform 758 modules/core/test/test_arithm.cpp if( rng.uniform(0, 2) ) uniform 826 modules/core/test/test_arithm.cpp flipcode = rng.uniform(0, 3) - 1; uniform 1096 modules/core/test/test_arithm.cpp angleInDegrees = rng.uniform(0, 2) != 0; uniform 1241 modules/core/test/test_arithm.cpp normType = rng.uniform(1, 8); uniform 1340 modules/core/test/test_arithm.cpp bool haveMask = (op->flags & cvtest::BaseElemWiseOp::SUPPORT_MASK) != 0 && rng.uniform(0, 4) == 0; uniform 1444 modules/core/test/test_arithm.cpp int k, dims = rng.uniform(1, MAX_DIM+1), p = 1; uniform 1445 modules/core/test/test_arithm.cpp int depth = rng.uniform(CV_8U, CV_64F+1); uniform 1446 modules/core/test/test_arithm.cpp int cn = rng.uniform(1, 6); uniform 1448 modules/core/test/test_arithm.cpp int op = rng.uniform(0, 5); uniform 1452 modules/core/test/test_arithm.cpp sizes[k] = rng.uniform(1, 30); uniform 1813 modules/core/test/test_arithm.cpp test[i] = theRNG().uniform(0, 2) != 0; uniform 846 modules/core/test/test_dxt.cpp int m = rng.uniform(2, 11); uniform 847 modules/core/test/test_dxt.cpp int n = rng.uniform(2, 11); uniform 848 modules/core/test/test_dxt.cpp int depth = rng.uniform(0, 2) + CV_32F; uniform 874 modules/core/test/test_dxt.cpp int type = theRNG().uniform(0, 2) ? CV_64F : CV_32F; uniform 875 modules/core/test/test_dxt.cpp int m = theRNG().uniform(1, 10); uniform 876 modules/core/test/test_dxt.cpp int n = theRNG().uniform(1, 10); uniform 1004 modules/core/test/test_mat.cpp Size mSize(rng.uniform(minMSize, maxMSize), rng.uniform(minMSize, maxMSize)); uniform 1005 modules/core/test/test_mat.cpp size_t mvSize = rng.uniform(1, maxMvSize); uniform 1048 modules/core/test/test_mat.cpp Mat m(size, CV_MAKETYPE(depth, rng.uniform(1,maxMatChannels))); uniform 2362 modules/core/test/test_math.cpp const int dim = theRNG().uniform(1,10); uniform 2363 modules/core/test/test_math.cpp const float scale = theRNG().uniform(1.f, 100.f); uniform 2656 modules/core/test/test_math.cpp dims = rng.uniform(inVariant == MAT_1_N_CDIM ? 2 : 1, MAX_DIM+1); uniform 2657 modules/core/test/test_math.cpp N = rng.uniform(1, MAX_POINTS+1); uniform 2658 modules/core/test/test_math.cpp N0 = rng.uniform(1, MAX(N/10, 2)); uniform 2659 modules/core/test/test_math.cpp K = rng.uniform(1, N+1); uniform 2670 modules/core/test/test_math.cpp data[i] = data0[rng.uniform(0, N0)]; uniform 2687 modules/core/test/test_math.cpp data0.row(rng.uniform(0, N0)).copyTo(data.row(i)); uniform 2693 modules/core/test/test_math.cpp memcpy(data.ptr(i), data0.ptr(rng.uniform(0, N0)), dims * sizeof(float)); uniform 2699 modules/core/test/test_math.cpp memcpy(data.ptr() + i * dims * sizeof(float), data0.ptr(rng.uniform(0, N0)), dims * sizeof(float)); uniform 2706 modules/core/test/test_math.cpp data0.row(rng.uniform(0, N0)).copyTo(data.row(i)); uniform 2713 modules/core/test/test_math.cpp memcpy(data.ptr(i), data0.ptr(rng.uniform(0, N0)), dims * sizeof(float)); uniform 2827 modules/core/test/test_math.cpp int n = theRNG().uniform(1, 30); uniform 2831 modules/core/test/test_math.cpp int type = theRNG().uniform(0, 2) ? CV_64F : CV_32F; uniform 2836 modules/core/test/test_math.cpp int pf = theRNG().uniform(0, max_pf*2+1); uniform 1172 modules/core/test/test_operations.cpp int k, dims = rng.uniform(1, MAX_DIM+1), p = 1; uniform 1175 modules/core/test/test_operations.cpp sizes[k] = rng.uniform(1, 30); uniform 1178 modules/core/test/test_operations.cpp int j, nz = rng.uniform(0, (p+2)/2), nz0 = 0; uniform 1193 modules/core/test/test_operations.cpp int val = rng.uniform(1, 100); uniform 1195 modules/core/test/test_operations.cpp idx[k] = rng.uniform(0, sizes[k]); uniform 70 modules/core/test/test_rotatedrect.cpp a = Point2f( rng.uniform(-MAX_COORD_VAL, MAX_COORD_VAL), rng.uniform(-MAX_COORD_VAL, MAX_COORD_VAL) ); uniform 73 modules/core/test/test_rotatedrect.cpp b = Point2f( rng.uniform(-MAX_COORD_VAL, MAX_COORD_VAL), rng.uniform(-MAX_COORD_VAL, MAX_COORD_VAL) ); uniform 78 modules/core/test/test_rotatedrect.cpp double d = (double) rng.uniform(1.0f, 5.0f); uniform 447 modules/cudafeatures2d/src/orb.cpp int idx = rng.uniform(0, poolSize); uniform 474 modules/cudafeatures2d/src/orb.cpp pattern[i].x = rng.uniform(-patchSize / 2, patchSize / 2 + 1); uniform 475 modules/cudafeatures2d/src/orb.cpp pattern[i].y = rng.uniform(-patchSize / 2, patchSize / 2 + 1); uniform 276 modules/cudafeatures2d/test/test_features2d.cpp float diff = rng.uniform(step * c, step * (c + 1)); uniform 291 modules/cudaimgproc/perf/perf_hough.cpp const int objCount = rng.uniform(5, 15); uniform 294 modules/cudaimgproc/perf/perf_hough.cpp double scale = rng.uniform(0.7, 1.3); uniform 295 modules/cudaimgproc/perf/perf_hough.cpp bool rotate = 1 == rng.uniform(0, 2); uniform 304 modules/cudaimgproc/perf/perf_hough.cpp pos.x = rng.uniform(0, image.cols - obj.cols); uniform 305 modules/cudaimgproc/perf/perf_hough.cpp pos.y = rng.uniform(0, image.rows - obj.rows); uniform 163 modules/features2d/perf/perf_batchDistance.cpp float diff = rng.uniform( step*c, step*(c+1) ); uniform 359 modules/features2d/src/orb.cpp int idx = rng.uniform(0, poolSize); uniform 641 modules/features2d/src/orb.cpp pattern[i].x = rng.uniform(-patchSize/2, patchSize/2+1); uniform 642 modules/features2d/src/orb.cpp pattern[i].y = rng.uniform(-patchSize/2, patchSize/2+1); uniform 102 modules/features2d/test/ocl/test_brute_force_matcher.cpp float diff = rng.uniform(step * c, step * (c + 1)); uniform 187 modules/features2d/test/test_matchers_algorithmic.cpp float diff = rng.uniform( step*c, step*(c+1) ); uniform 61 modules/features2d/test/test_mser.cpp uchar b = rng.uniform(0, 256); uniform 62 modules/features2d/test/test_mser.cpp uchar g = rng.uniform(0, 256); uniform 63 modules/features2d/test/test_mser.cpp uchar r = rng.uniform(0, 256); uniform 106 modules/features2d/test/test_mser.cpp bool use_big_image = rng.uniform(0, 7) != 0; uniform 107 modules/features2d/test/test_mser.cpp bool invert = rng.uniform(0, 2) != 0; uniform 108 modules/features2d/test/test_mser.cpp bool binarize = use_big_image ? rng.uniform(0, 5) != 0 : false; uniform 109 modules/features2d/test/test_mser.cpp bool blur = rng.uniform(0, 2) != 0; uniform 110 modules/features2d/test/test_mser.cpp int thresh = thresharr[rng.uniform(0, 5)]; uniform 102 modules/features2d/test/test_nearestneighbors.cpp points.at<float>(pi, d) = data.at<float>(fi, d) + rng.uniform(0.0f, 1.0f) * noise; uniform 2802 modules/imgproc/include/opencv2/imgproc.hpp const float** ranges, bool uniform = true, bool accumulate = false ); uniform 2812 modules/imgproc/include/opencv2/imgproc.hpp bool uniform = true, bool accumulate = false ); uniform 2864 modules/imgproc/include/opencv2/imgproc.hpp double scale = 1, bool uniform = true ); uniform 2870 modules/imgproc/include/opencv2/imgproc.hpp double scale = 1, bool uniform = true ); uniform 648 modules/imgproc/include/opencv2/imgproc/imgproc_c.h int uniform CV_DEFAULT(1)); uniform 662 modules/imgproc/include/opencv2/imgproc/imgproc_c.h int uniform CV_DEFAULT(1)); uniform 680 modules/imgproc/include/opencv2/imgproc/imgproc_c.h int uniform CV_DEFAULT(1)); uniform 30 modules/imgproc/perf/perf_threshold.cpp double thresh = theRNG().uniform(1, 254); uniform 31 modules/imgproc/perf/perf_threshold.cpp double maxval = theRNG().uniform(1, 254); uniform 50 modules/imgproc/perf/perf_threshold.cpp double maxval = theRNG().uniform(1, 254); uniform 80 modules/imgproc/perf/perf_threshold.cpp double maxValue = theRNG().uniform(1, 254); uniform 55 modules/imgproc/src/histogram.cpp bool uniform, bool issparse, std::vector<size_t>& _tab ) uniform 62 modules/imgproc/src/histogram.cpp if( uniform ) uniform 117 modules/imgproc/src/histogram.cpp const float** ranges, bool uniform, uniform 185 modules/imgproc/src/histogram.cpp else if( uniform ) uniform 752 modules/imgproc/src/histogram.cpp const double* _uniranges, bool uniform ) uniform 769 modules/imgproc/src/histogram.cpp if( uniform ) uniform 987 modules/imgproc/src/histogram.cpp const double* _uniranges, bool uniform ) uniform 997 modules/imgproc/src/histogram.cpp calcHistLookupTables_8u( hist, SparseMat(), dims, _ranges, _uniranges, uniform, false, _tab ); uniform 1225 modules/imgproc/src/histogram.cpp const float** ranges, bool uniform, bool accumulate ) uniform 1241 modules/imgproc/src/histogram.cpp !accumulate && uniform) uniform 1279 modules/imgproc/src/histogram.cpp uniform, ptrs, deltas, imsize, uniranges ); uniform 1280 modules/imgproc/src/histogram.cpp const double* _uniranges = uniform ? &uniranges[0] : 0; uniform 1285 modules/imgproc/src/histogram.cpp calcHist_8u(ptrs, deltas, imsize, ihist, dims, ranges, _uniranges, uniform ); uniform 1287 modules/imgproc/src/histogram.cpp calcHist_<ushort>(ptrs, deltas, imsize, ihist, dims, ranges, _uniranges, uniform ); uniform 1289 modules/imgproc/src/histogram.cpp calcHist_<float>(ptrs, deltas, imsize, ihist, dims, ranges, _uniranges, uniform ); uniform 1303 modules/imgproc/src/histogram.cpp const double* _uniranges, bool uniform ) uniform 1313 modules/imgproc/src/histogram.cpp if( uniform ) uniform 1387 modules/imgproc/src/histogram.cpp const double* _uniranges, bool uniform ) uniform 1397 modules/imgproc/src/histogram.cpp calcHistLookupTables_8u( Mat(), hist, dims, _ranges, _uniranges, uniform, true, _tab ); uniform 1429 modules/imgproc/src/histogram.cpp const float** ranges, bool uniform, bool accumulate, bool keepInt ) uniform 1452 modules/imgproc/src/histogram.cpp uniform, ptrs, deltas, imsize, uniranges ); uniform 1453 modules/imgproc/src/histogram.cpp const double* _uniranges = uniform ? &uniranges[0] : 0; uniform 1457 modules/imgproc/src/histogram.cpp calcSparseHist_8u(ptrs, deltas, imsize, hist, dims, ranges, _uniranges, uniform ); uniform 1459 modules/imgproc/src/histogram.cpp calcSparseHist_<ushort>(ptrs, deltas, imsize, hist, dims, ranges, _uniranges, uniform ); uniform 1461 modules/imgproc/src/histogram.cpp calcSparseHist_<float>(ptrs, deltas, imsize, hist, dims, ranges, _uniranges, uniform ); uniform 1539 modules/imgproc/src/histogram.cpp const float** ranges, bool uniform, bool accumulate ) uniform 1543 modules/imgproc/src/histogram.cpp ranges, uniform, accumulate, false ); uniform 1590 modules/imgproc/src/histogram.cpp const double* _uniranges, float scale, bool uniform ) uniform 1607 modules/imgproc/src/histogram.cpp if( uniform ) uniform 1755 modules/imgproc/src/histogram.cpp const double* _uniranges, float scale, bool uniform ) uniform 1765 modules/imgproc/src/histogram.cpp calcHistLookupTables_8u( hist, SparseMat(), dims, _ranges, _uniranges, uniform, false, _tab ); uniform 1878 modules/imgproc/src/histogram.cpp const float** ranges, double scale, bool uniform ) uniform 1891 modules/imgproc/src/histogram.cpp uniform, ptrs, deltas, imsize, uniranges ); uniform 1892 modules/imgproc/src/histogram.cpp const double* _uniranges = uniform ? &uniranges[0] : 0; uniform 1896 modules/imgproc/src/histogram.cpp calcBackProj_8u(ptrs, deltas, imsize, hist, dims, ranges, _uniranges, (float)scale, uniform); uniform 1898 modules/imgproc/src/histogram.cpp calcBackProj_<ushort, ushort>(ptrs, deltas, imsize, hist, dims, ranges, _uniranges, (float)scale, uniform ); uniform 1900 modules/imgproc/src/histogram.cpp calcBackProj_<float, float>(ptrs, deltas, imsize, hist, dims, ranges, _uniranges, (float)scale, uniform ); uniform 1912 modules/imgproc/src/histogram.cpp const double* _uniranges, float scale, bool uniform ) uniform 1923 modules/imgproc/src/histogram.cpp if( uniform ) uniform 1997 modules/imgproc/src/histogram.cpp const double* _uniranges, float scale, bool uniform ) uniform 2007 modules/imgproc/src/histogram.cpp calcHistLookupTables_8u( Mat(), hist, dims, _ranges, _uniranges, uniform, true, _tab ); uniform 2041 modules/imgproc/src/histogram.cpp const float** ranges, double scale, bool uniform ) uniform 2054 modules/imgproc/src/histogram.cpp uniform, ptrs, deltas, imsize, uniranges ); uniform 2055 modules/imgproc/src/histogram.cpp const double* _uniranges = uniform ? &uniranges[0] : 0; uniform 2060 modules/imgproc/src/histogram.cpp _uniranges, (float)scale, uniform); uniform 2063 modules/imgproc/src/histogram.cpp _uniranges, (float)scale, uniform ); uniform 2066 modules/imgproc/src/histogram.cpp _uniranges, (float)scale, uniform ); uniform 2594 modules/imgproc/src/histogram.cpp cvCreateHist( int dims, int *sizes, CvHistType type, float** ranges, int uniform ) uniform 2606 modules/imgproc/src/histogram.cpp if (uniform) hist->type|= CV_HIST_UNIFORM_FLAG; uniform 2621 modules/imgproc/src/histogram.cpp cvSetHistBinRanges( hist, ranges, uniform ); uniform 2630 modules/imgproc/src/histogram.cpp float *data, float **ranges, int uniform ) uniform 2644 modules/imgproc/src/histogram.cpp if( !uniform ) uniform 2647 modules/imgproc/src/histogram.cpp cvSetHistBinRanges( hist, ranges, uniform ); uniform 3112 modules/imgproc/src/histogram.cpp cvSetHistBinRanges( CvHistogram* hist, float** ranges, int uniform ) uniform 3127 modules/imgproc/src/histogram.cpp if( uniform ) uniform 3187 modules/imgproc/src/histogram.cpp bool uniform = CV_IS_UNIFORM_HIST(hist); uniform 3203 modules/imgproc/src/histogram.cpp if( uniform ) uniform 3215 modules/imgproc/src/histogram.cpp H, cvGetDims(hist->bins), H.size, ranges, uniform, accumulate != 0 ); uniform 3226 modules/imgproc/src/histogram.cpp sH.dims() > 0 ? sH.hdr->size : 0, ranges, uniform, accumulate != 0, true ); uniform 3251 modules/imgproc/src/histogram.cpp bool uniform = CV_IS_UNIFORM_HIST(hist); uniform 3258 modules/imgproc/src/histogram.cpp if( uniform ) uniform 3278 modules/imgproc/src/histogram.cpp 0, H, _dst, ranges, 1, uniform ); uniform 3285 modules/imgproc/src/histogram.cpp 0, sH, _dst, ranges, 1, uniform ); uniform 497 modules/imgproc/src/hough.cpp int idx = rng.uniform(0, count); uniform 373 modules/imgproc/src/linefit.cpp j = rng.uniform(0, count); uniform 508 modules/imgproc/src/linefit.cpp j = rng.uniform(0, count); uniform 138 modules/imgproc/test/ocl/test_filters.cpp double sigmacolor = rng.uniform(20, 100); uniform 139 modules/imgproc/test/ocl/test_filters.cpp double sigmaspace = rng.uniform(10, 40); uniform 222 modules/imgproc/test/ocl/test_filters.cpp double sigma1 = rng.uniform(0.1, 1.0); uniform 223 modules/imgproc/test/ocl/test_filters.cpp double sigma2 = j % 2 == 0 ? sigma1 : rng.uniform(0.1, 1.0); uniform 128 modules/imgproc/test/ocl/test_warp.cpp rng.uniform(-180.f, 180.f), rng.uniform(0.4f, 2.0f)); uniform 151 modules/imgproc/test/ocl/test_warp.cpp Point2f dp[] = { Point2f(rng.uniform(0.0f, cols2), rng.uniform(0.0f, rows2)), uniform 152 modules/imgproc/test/ocl/test_warp.cpp Point2f(rng.uniform(cols2, cols), rng.uniform(0.0f, rows2)), uniform 153 modules/imgproc/test/ocl/test_warp.cpp Point2f(rng.uniform(0.0f, cols2), rng.uniform(rows2, rows)), uniform 154 modules/imgproc/test/ocl/test_warp.cpp Point2f(rng.uniform(cols2, cols), rng.uniform(rows2, rows)) }; uniform 93 modules/imgproc/test/test_bilateral_filter.cpp double rand_value = rng.uniform(log((double)min_value), log((double)max_value + 1)); uniform 241 modules/imgproc/test/test_bilateral_filter.cpp _d = rng.uniform(0., 1.) > 0.5 ? 5 : 3; uniform 1939 modules/imgproc/test/test_color.cpp int blueInd = rng.uniform(0., 1.) > 0.5 ? 0 : 2; uniform 1940 modules/imgproc/test/test_color.cpp bool srgb = rng.uniform(0., 1.) > 0.5; uniform 1864 modules/imgproc/test/test_convhull.cpp int n = rng.uniform(3, 30); uniform 1869 modules/imgproc/test/test_convhull.cpp center.x = rng.uniform(cvCeil(max_r), cvFloor(640-max_r)); uniform 1870 modules/imgproc/test/test_convhull.cpp center.y = rng.uniform(cvCeil(max_r), cvFloor(480-max_r)); uniform 1875 modules/imgproc/test/test_convhull.cpp double r = rng.uniform(min_r, max_r); uniform 1885 modules/imgproc/test/test_convhull.cpp slice.start_index = rng.uniform(-n/2, 3*n/2); uniform 1886 modules/imgproc/test/test_convhull.cpp slice.end_index = rng.uniform(-n/2, 3*n/2); uniform 621 modules/imgproc/test/test_cvtyuv.cpp Size sz(random.uniform(1, 641), random.uniform(1, 481)); uniform 659 modules/imgproc/test/test_cvtyuv.cpp Size sz(random.uniform(1, 641), random.uniform(1, 481)); uniform 664 modules/imgproc/test/test_cvtyuv.cpp int roi_offset_top = random.uniform(0, 6); uniform 665 modules/imgproc/test/test_cvtyuv.cpp int roi_offset_bottom = random.uniform(0, 6); uniform 666 modules/imgproc/test/test_cvtyuv.cpp int roi_offset_left = random.uniform(0, 6); uniform 667 modules/imgproc/test/test_cvtyuv.cpp int roi_offset_right = random.uniform(0, 6); uniform 1927 modules/imgproc/test/test_filter.cpp int width = rng.uniform(5, 33); uniform 1928 modules/imgproc/test/test_filter.cpp int height = rng.uniform(5, 33); uniform 1929 modules/imgproc/test/test_filter.cpp int cn = rng.uniform(1, 5); uniform 1930 modules/imgproc/test/test_filter.cpp int iterations = rng.uniform(1, 11); uniform 1931 modules/imgproc/test/test_filter.cpp int op = rng.uniform(0, 2); uniform 73 modules/imgproc/test/test_histograms.cpp int uniform; uniform 148 modules/imgproc/test/test_histograms.cpp uniform = cvtest::randInt(rng) % 2; uniform 154 modules/imgproc/test/test_histograms.cpp if( !uniform ) uniform 187 modules/imgproc/test/test_histograms.cpp if( uniform ) uniform 292 modules/imgproc/test/test_histograms.cpp hist[i] = cvCreateHist( cdims, dims, hist_type, r, uniform ); uniform 1225 modules/imgproc/test/test_histograms.cpp int uniform = CV_IS_UNIFORM_HIST(hist); uniform 1270 modules/imgproc/test/test_histograms.cpp if( uniform ) uniform 1458 modules/imgproc/test/test_histograms.cpp int uniform = CV_IS_UNIFORM_HIST(hist); uniform 1490 modules/imgproc/test/test_histograms.cpp if( uniform ) uniform 1640 modules/imgproc/test/test_imgwarp.cpp int width = rng.uniform(3, 333); uniform 1641 modules/imgproc/test/test_imgwarp.cpp int height = rng.uniform(3, 333); uniform 1642 modules/imgproc/test/test_imgwarp.cpp int cn = rng.uniform(1, 10); uniform 140 modules/imgproc/test/test_imgwarp_strict.cpp size.width = static_cast<int>(std::exp(rng.uniform(1.0f, 7.0f))); uniform 141 modules/imgproc/test/test_imgwarp_strict.cpp size.height = static_cast<int>(std::exp(rng.uniform(1.0f, 7.0f))); uniform 153 modules/imgproc/test/test_imgwarp_strict.cpp int depth = rng.uniform(0, CV_64F); uniform 155 modules/imgproc/test/test_imgwarp_strict.cpp depth = rng.uniform(0, CV_64F); uniform 157 modules/imgproc/test/test_imgwarp_strict.cpp int cn = rng.uniform(1, 4); uniform 159 modules/imgproc/test/test_imgwarp_strict.cpp cn = rng.uniform(1, 4); uniform 182 modules/imgproc/test/test_imgwarp_strict.cpp interpolation = rng.uniform(0, CV_INTER_LANCZOS4 + 1); uniform 188 modules/imgproc/test/test_imgwarp_strict.cpp bool area_fast = rng.uniform(0., 1.) > 0.5; uniform 191 modules/imgproc/test/test_imgwarp_strict.cpp scale_x = rng.uniform(2, 5); uniform 192 modules/imgproc/test/test_imgwarp_strict.cpp scale_y = rng.uniform(2, 5); uniform 196 modules/imgproc/test/test_imgwarp_strict.cpp scale_x = rng.uniform(1.0, 3.0); uniform 197 modules/imgproc/test/test_imgwarp_strict.cpp scale_y = rng.uniform(1.0, 3.0); uniform 202 modules/imgproc/test/test_imgwarp_strict.cpp scale_x = rng.uniform(0.4, 4.0); uniform 203 modules/imgproc/test/test_imgwarp_strict.cpp scale_y = rng.uniform(0.4, 4.0); uniform 670 modules/imgproc/test/test_imgwarp_strict.cpp borderType = rng.uniform(1, BORDER_WRAP); uniform 671 modules/imgproc/test/test_imgwarp_strict.cpp borderValue = Scalar::all(rng.uniform(0, 255)); uniform 675 modules/imgproc/test/test_imgwarp_strict.cpp mapx.create(dst.size(), mapx_types[rng.uniform(0, sizeof(mapx_types) / sizeof(int))]); uniform 688 modules/imgproc/test/test_imgwarp_strict.cpp (*begin_x)[0] = static_cast<short>(rng.uniform(static_cast<int>(_n), std::max(src.cols + n - 1, 0))); uniform 689 modules/imgproc/test/test_imgwarp_strict.cpp (*begin_x)[1] = static_cast<short>(rng.uniform(static_cast<int>(_n), std::max(src.rows + n - 1, 0))); uniform 695 modules/imgproc/test/test_imgwarp_strict.cpp mapy.create(dst.size(), mapy_types[rng.uniform(0, sizeof(mapy_types) / sizeof(int))]); uniform 703 modules/imgproc/test/test_imgwarp_strict.cpp begin_y[0] = static_cast<short>(rng.uniform(0, 1024)); uniform 711 modules/imgproc/test/test_imgwarp_strict.cpp begin_y[0] = static_cast<short>(rng.uniform(0, 1024)); uniform 728 modules/imgproc/test/test_imgwarp_strict.cpp begin_x[0] = rng.uniform(_n, fscols); uniform 729 modules/imgproc/test/test_imgwarp_strict.cpp begin_y[0] = rng.uniform(_n, fsrows); uniform 746 modules/imgproc/test/test_imgwarp_strict.cpp ptr[x] = rng.uniform(_n, fscols); uniform 747 modules/imgproc/test/test_imgwarp_strict.cpp ptr[x + 1] = rng.uniform(_n, fsrows); uniform 1020 modules/imgproc/test/test_imgwarp_strict.cpp rng.uniform(-180.f, 180.f), rng.uniform(0.4f, 2.0f)); uniform 1021 modules/imgproc/test/test_imgwarp_strict.cpp int depth = depths[rng.uniform(0, sizeof(depths) / sizeof(depths[0]))]; uniform 1030 modules/imgproc/test/test_imgwarp_strict.cpp if (rng.uniform(0., 1.) > 0) uniform 1144 modules/imgproc/test/test_imgwarp_strict.cpp Point2f dp[] = { Point2f(rng.uniform(0.0f, cols), rng.uniform(0.0f, rows)), uniform 1145 modules/imgproc/test/test_imgwarp_strict.cpp Point2f(rng.uniform(0.0f, cols), rng.uniform(0.0f, rows)), uniform 1146 modules/imgproc/test/test_imgwarp_strict.cpp Point2f(rng.uniform(0.0f, cols), rng.uniform(0.0f, rows)), uniform 1147 modules/imgproc/test/test_imgwarp_strict.cpp Point2f(rng.uniform(0.0f, cols), rng.uniform(0.0f, rows)) }; uniform 1151 modules/imgproc/test/test_imgwarp_strict.cpp int depth = depths[rng.uniform(0, 2)]; uniform 62 modules/imgproc/test/test_lsd.cpp image = Mat(img_size, CV_8UC1, Scalar::all(rng.uniform(0, 256))); uniform 67 modules/imgproc/test/test_lsd.cpp image = Mat(img_size, CV_8UC1, Scalar::all(rng.uniform(0, 128))); uniform 71 modules/imgproc/test/test_lsd.cpp int y = rng.uniform(10, img_size.width - 10); uniform 82 modules/imgproc/test/test_lsd.cpp Point center(rng.uniform(img_size.width/4, img_size.width*3/4), uniform 83 modules/imgproc/test/test_lsd.cpp rng.uniform(img_size.height/4, img_size.height*3/4)); uniform 84 modules/imgproc/test/test_lsd.cpp Size rect_size(rng.uniform(img_size.width/8, img_size.width/6), uniform 85 modules/imgproc/test/test_lsd.cpp rng.uniform(img_size.height/8, img_size.height/6)); uniform 86 modules/imgproc/test/test_lsd.cpp float angle = rng.uniform(0.f, 360.f); uniform 189 modules/ml/src/ann_mlp.cpp val = rng.uniform(0., 1.)*2-1.; uniform 781 modules/ml/src/ann_mlp.cpp j = rng.uniform(0, count); uniform 782 modules/ml/src/ann_mlp.cpp k = rng.uniform(0, count); uniform 798 modules/ml/src/data.cpp int a = rng.uniform(0, nsamples); uniform 799 modules/ml/src/data.cpp int b = rng.uniform(0, nsamples); uniform 97 modules/ml/src/rtrees.cpp int i1 = rng.uniform(0, nvars); uniform 98 modules/ml/src/rtrees.cpp int i2 = rng.uniform(0, nvars); uniform 177 modules/ml/src/rtrees.cpp j = rng.uniform(0, n); uniform 245 modules/ml/src/rtrees.cpp int i1 = rng.uniform(0, n_oob); uniform 246 modules/ml/src/rtrees.cpp int i2 = rng.uniform(0, n_oob); uniform 1710 modules/ml/src/svm.cpp int i1 = rng.uniform(0, sample_count); uniform 1711 modules/ml/src/svm.cpp int i2 = rng.uniform(0, sample_count); uniform 1743 modules/ml/src/svm.cpp int i1 = rng.uniform(a, b); uniform 1744 modules/ml/src/svm.cpp int i2 = rng.uniform(a, b); uniform 728 modules/ml/src/tree.cpp labels[i] = i < k ? i : r.uniform(0, k); uniform 738 modules/ml/src/tree.cpp int i1 = r.uniform(0, n); uniform 739 modules/ml/src/tree.cpp int i2 = r.uniform(0, n); uniform 66 modules/ml/test/test_svmtrainauto.cpp int response = rng.uniform(0, 2); // Random from {0, 1}. uniform 67 modules/ml/test/test_svmtrainauto.cpp samples.at<float>( i, 0 ) = rng.uniform(0.f, 0.5f) + response * 0.5f; uniform 68 modules/ml/test/test_svmtrainauto.cpp samples.at<float>( i, 1 ) = rng.uniform(0.f, 0.5f) + response * 0.5f; uniform 1348 modules/objdetect/test/test_cascadeandhog.cpp Size ssize(rng.uniform(1, 10) * actual_hog.winSize.width, uniform 1349 modules/objdetect/test/test_cascadeandhog.cpp rng.uniform(1, 10) * actual_hog.winSize.height); uniform 1350 modules/objdetect/test/test_cascadeandhog.cpp int type = rng.uniform(0, 1) > 0 ? CV_8UC1 : CV_8UC3; uniform 1384 modules/objdetect/test/test_cascadeandhog.cpp int width = rng.uniform(1, 100); uniform 1385 modules/objdetect/test/test_cascadeandhog.cpp int height = rng.uniform(1, 100); uniform 170 modules/photo/test/test_hdr.cpp Mat uniform(100, 100, CV_8UC3); uniform 171 modules/photo/test/test_hdr.cpp uniform = Scalar(0, 255, 0); uniform 174 modules/photo/test/test_hdr.cpp images.push_back(uniform); uniform 178 modules/photo/test/test_hdr.cpp checkEqual(uniform, result, 1e-2f, "Mertens"); uniform 125 modules/superres/test/test_superres.cpp if (cvtest::TS::ptr()->get_rng().uniform(0, frequency) < 1) uniform 206 modules/ts/include/opencv2/ts/ocl_test.hpp return rng.uniform(minVal, maxVal); uniform 211 modules/ts/include/opencv2/ts/ocl_test.hpp return rng.uniform(minVal, maxVal); uniform 218 modules/ts/include/opencv2/ts/ocl_test.hpp double pow = rng.uniform(logMin, logMax); uniform 65 modules/ts/src/cuda_test.cpp return rng.uniform(minVal, maxVal); uniform 71 modules/ts/src/cuda_test.cpp return rng.uniform(minVal, maxVal); uniform 46 modules/ts/src/ts_func.cpp double width_log = rng.uniform(0., maxSizeLog); uniform 47 modules/ts/src/ts_func.cpp double height_log = rng.uniform(0., maxSizeLog - width_log); uniform 58 modules/ts/src/ts_func.cpp int i, dims = rng.uniform(minDims, maxDims+1); uniform 62 modules/ts/src/ts_func.cpp double v = rng.uniform(0., maxSizeLog); uniform 68 modules/ts/src/ts_func.cpp int j = rng.uniform(0, dims); uniform 69 modules/ts/src/ts_func.cpp int k = rng.uniform(0, dims); uniform 76 modules/ts/src/ts_func.cpp int channels = rng.uniform(minChannels, maxChannels+1); uniform 81 modules/ts/src/ts_func.cpp depth = rng.uniform(CV_8U, CV_64F+1); uniform 113 modules/ts/src/ts_func.cpp size0.width += std::max(rng.uniform(0, 10) - 5, 0); uniform 114 modules/ts/src/ts_func.cpp size0.height += std::max(rng.uniform(0, 10) - 5, 0); uniform 137 modules/ts/src/ts_func.cpp size0[i] += std::max(rng.uniform(0, 5) - 2, 0); uniform 397 modules/ts/src/ts_func.cpp bool uniform = k >= elemSize; uniform 402 modules/ts/src/ts_func.cpp if( uniform ) uniform 327 modules/ts/src/ts_perf.cpp x = regRNG.uniform(0, m.size.p[1]); uniform 328 modules/ts/src/ts_perf.cpp y = regRNG.uniform(0, m.size.p[0]); uniform 329 modules/ts/src/ts_perf.cpp cn = regRNG.uniform(0, m.channels()); uniform 334 modules/ts/src/ts_perf.cpp x = regRNG.uniform(0, m.size.p[1]); uniform 335 modules/ts/src/ts_perf.cpp y = regRNG.uniform(0, m.size.p[0]); uniform 336 modules/ts/src/ts_perf.cpp cn = regRNG.uniform(0, m.channels()); uniform 405 modules/ts/src/ts_perf.cpp int idx = regRNG.uniform(0, total); uniform 1476 modules/video/src/lkpyramid.cpp idx[i] = rng.uniform(0, count); uniform 135 modules/video/test/test_ecc.cpp Mat translationGround = (Mat_<float>(2,3) << 1, 0, (rng.uniform(10.f, 20.f)), uniform 136 modules/video/test/test_ecc.cpp 0, 1, (rng.uniform(10.f, 20.f))); uniform 208 modules/video/test/test_ecc.cpp double angle = CV_PI/30 + CV_PI*rng.uniform((double)-2.f, (double)2.f)/180; uniform 210 modules/video/test/test_ecc.cpp Mat euclideanGround = (Mat_<float>(2,3) << cos(angle), -sin(angle), (rng.uniform(10.f, 20.f)), uniform 211 modules/video/test/test_ecc.cpp sin(angle), cos(angle), (rng.uniform(10.f, 20.f))); uniform 283 modules/video/test/test_ecc.cpp Mat affineGround = (Mat_<float>(2,3) << (1-rng.uniform(-0.05f, 0.05f)), uniform 284 modules/video/test/test_ecc.cpp (rng.uniform(-0.03f, 0.03f)), (rng.uniform(10.f, 20.f)), uniform 285 modules/video/test/test_ecc.cpp (rng.uniform(-0.03f, 0.03f)), (1-rng.uniform(-0.05f, 0.05f)), uniform 286 modules/video/test/test_ecc.cpp (rng.uniform(10.f, 20.f))); uniform 358 modules/video/test/test_ecc.cpp Mat homoGround = (Mat_<float>(3,3) << (1-rng.uniform(-0.05f, 0.05f)), uniform 359 modules/video/test/test_ecc.cpp (rng.uniform(-0.03f, 0.03f)), (rng.uniform(10.f, 20.f)), uniform 360 modules/video/test/test_ecc.cpp (rng.uniform(-0.03f, 0.03f)), (1-rng.uniform(-0.05f, 0.05f)),(rng.uniform(10.f, 20.f)), uniform 361 modules/video/test/test_ecc.cpp (rng.uniform(0.0001f, 0.0003f)), (rng.uniform(0.0001f, 0.0003f)), 1.f); uniform 435 modules/video/test/test_ecc.cpp Mat translationGround = (Mat_<float>(2,3) << 1, 0, (rng.uniform(10.f, 20.f)), uniform 436 modules/video/test/test_ecc.cpp 0, 1, (rng.uniform(10.f, 20.f))); uniform 238 modules/video/test/test_optflowpyrlk.cpp int x = rng.uniform(0, 640); uniform 239 modules/video/test/test_optflowpyrlk.cpp int y = rng.uniform(0, 360); uniform 110 modules/videoio/test/test_positioning.cpp idx.push_back(rng.uniform(0, N)); uniform 112 modules/videoio/test/test_positioning.cpp std::swap(idx.at(rng.uniform(0, N-1)), idx.at(N-1)); uniform 131 modules/videoio/test/test_video_pos.cpp int idx = theRNG().uniform(0, n_frames); uniform 230 modules/viz/src/precomp.hpp return Vec3d(rng.uniform(from, to), rng.uniform(from, to), rng.uniform(from, to)); uniform 33 samples/cpp/convexhull.cpp pt.x = rng.uniform(img.cols/4, img.cols*3/4); uniform 34 samples/cpp/convexhull.cpp pt.y = rng.uniform(img.rows/4, img.rows*3/4); uniform 37 samples/cpp/drawing.cpp pt1.x = rng.uniform(x1, x2); uniform 38 samples/cpp/drawing.cpp pt1.y = rng.uniform(y1, y2); uniform 39 samples/cpp/drawing.cpp pt2.x = rng.uniform(x1, x2); uniform 40 samples/cpp/drawing.cpp pt2.y = rng.uniform(y1, y2); uniform 42 samples/cpp/drawing.cpp line( image, pt1, pt2, randomColor(rng), rng.uniform(1,10), lineType ); uniform 52 samples/cpp/drawing.cpp pt1.x = rng.uniform(x1, x2); uniform 53 samples/cpp/drawing.cpp pt1.y = rng.uniform(y1, y2); uniform 54 samples/cpp/drawing.cpp pt2.x = rng.uniform(x1, x2); uniform 55 samples/cpp/drawing.cpp pt2.y = rng.uniform(y1, y2); uniform 56 samples/cpp/drawing.cpp int thickness = rng.uniform(-3, 10); uniform 68 samples/cpp/drawing.cpp center.x = rng.uniform(x1, x2); uniform 69 samples/cpp/drawing.cpp center.y = rng.uniform(y1, y2); uniform 71 samples/cpp/drawing.cpp axes.width = rng.uniform(0, 200); uniform 72 samples/cpp/drawing.cpp axes.height = rng.uniform(0, 200); uniform 73 samples/cpp/drawing.cpp double angle = rng.uniform(0, 180); uniform 76 samples/cpp/drawing.cpp randomColor(rng), rng.uniform(-1,9), lineType ); uniform 86 samples/cpp/drawing.cpp pt[0][0].x = rng.uniform(x1, x2); uniform 87 samples/cpp/drawing.cpp pt[0][0].y = rng.uniform(y1, y2); uniform 88 samples/cpp/drawing.cpp pt[0][1].x = rng.uniform(x1, x2); uniform 89 samples/cpp/drawing.cpp pt[0][1].y = rng.uniform(y1, y2); uniform 90 samples/cpp/drawing.cpp pt[0][2].x = rng.uniform(x1, x2); uniform 91 samples/cpp/drawing.cpp pt[0][2].y = rng.uniform(y1, y2); uniform 92 samples/cpp/drawing.cpp pt[1][0].x = rng.uniform(x1, x2); uniform 93 samples/cpp/drawing.cpp pt[1][0].y = rng.uniform(y1, y2); uniform 94 samples/cpp/drawing.cpp pt[1][1].x = rng.uniform(x1, x2); uniform 95 samples/cpp/drawing.cpp pt[1][1].y = rng.uniform(y1, y2); uniform 96 samples/cpp/drawing.cpp pt[1][2].x = rng.uniform(x1, x2); uniform 97 samples/cpp/drawing.cpp pt[1][2].y = rng.uniform(y1, y2); uniform 101 samples/cpp/drawing.cpp polylines(image, ppt, npt, 2, true, randomColor(rng), rng.uniform(1,10), lineType); uniform 111 samples/cpp/drawing.cpp pt[0][0].x = rng.uniform(x1, x2); uniform 112 samples/cpp/drawing.cpp pt[0][0].y = rng.uniform(y1, y2); uniform 113 samples/cpp/drawing.cpp pt[0][1].x = rng.uniform(x1, x2); uniform 114 samples/cpp/drawing.cpp pt[0][1].y = rng.uniform(y1, y2); uniform 115 samples/cpp/drawing.cpp pt[0][2].x = rng.uniform(x1, x2); uniform 116 samples/cpp/drawing.cpp pt[0][2].y = rng.uniform(y1, y2); uniform 117 samples/cpp/drawing.cpp pt[1][0].x = rng.uniform(x1, x2); uniform 118 samples/cpp/drawing.cpp pt[1][0].y = rng.uniform(y1, y2); uniform 119 samples/cpp/drawing.cpp pt[1][1].x = rng.uniform(x1, x2); uniform 120 samples/cpp/drawing.cpp pt[1][1].y = rng.uniform(y1, y2); uniform 121 samples/cpp/drawing.cpp pt[1][2].x = rng.uniform(x1, x2); uniform 122 samples/cpp/drawing.cpp pt[1][2].y = rng.uniform(y1, y2); uniform 136 samples/cpp/drawing.cpp center.x = rng.uniform(x1, x2); uniform 137 samples/cpp/drawing.cpp center.y = rng.uniform(y1, y2); uniform 139 samples/cpp/drawing.cpp circle(image, center, rng.uniform(0, 300), randomColor(rng), uniform 140 samples/cpp/drawing.cpp rng.uniform(-1, 9), lineType); uniform 150 samples/cpp/drawing.cpp org.x = rng.uniform(x1, x2); uniform 151 samples/cpp/drawing.cpp org.y = rng.uniform(y1, y2); uniform 153 samples/cpp/drawing.cpp putText(image, "Testing text rendering", org, rng.uniform(0,8), uniform 154 samples/cpp/drawing.cpp rng.uniform(0,100)*0.05+0.1, randomColor(rng), rng.uniform(1, 10), lineType); uniform 239 samples/cpp/image_alignment.cpp warpGround = (Mat_<float>(2,3) << 1, 0, (rng.uniform(10.f, 20.f)), uniform 240 samples/cpp/image_alignment.cpp 0, 1, (rng.uniform(10.f, 20.f))); uniform 245 samples/cpp/image_alignment.cpp angle = CV_PI/30 + CV_PI*rng.uniform((double)-2.f, (double)2.f)/180; uniform 247 samples/cpp/image_alignment.cpp warpGround = (Mat_<float>(2,3) << cos(angle), -sin(angle), (rng.uniform(10.f, 20.f)), uniform 248 samples/cpp/image_alignment.cpp sin(angle), cos(angle), (rng.uniform(10.f, 20.f))); uniform 254 samples/cpp/image_alignment.cpp warpGround = (Mat_<float>(2,3) << (1-rng.uniform(-0.05f, 0.05f)), uniform 255 samples/cpp/image_alignment.cpp (rng.uniform(-0.03f, 0.03f)), (rng.uniform(10.f, 20.f)), uniform 256 samples/cpp/image_alignment.cpp (rng.uniform(-0.03f, 0.03f)), (1-rng.uniform(-0.05f, 0.05f)), uniform 257 samples/cpp/image_alignment.cpp (rng.uniform(10.f, 20.f))); uniform 262 samples/cpp/image_alignment.cpp warpGround = (Mat_<float>(3,3) << (1-rng.uniform(-0.05f, 0.05f)), uniform 263 samples/cpp/image_alignment.cpp (rng.uniform(-0.03f, 0.03f)), (rng.uniform(10.f, 20.f)), uniform 264 samples/cpp/image_alignment.cpp (rng.uniform(-0.03f, 0.03f)), (1-rng.uniform(-0.05f, 0.05f)),(rng.uniform(10.f, 20.f)), uniform 265 samples/cpp/image_alignment.cpp (rng.uniform(0.0001f, 0.0003f)), (rng.uniform(0.0001f, 0.0003f)), 1.f); uniform 85 samples/cpp/kalman.cpp if(theRNG().uniform(0,4) != 0) uniform 35 samples/cpp/kmeans.cpp int k, clusterCount = rng.uniform(2, MAX_CLUSTERS+1); uniform 36 samples/cpp/kmeans.cpp int i, sampleCount = rng.uniform(1, 1001); uniform 46 samples/cpp/kmeans.cpp center.x = rng.uniform(0, img.cols); uniform 47 samples/cpp/kmeans.cpp center.y = rng.uniform(0, img.rows); uniform 29 samples/cpp/minarea.cpp int i, count = rng.uniform(1, 101); uniform 36 samples/cpp/minarea.cpp pt.x = rng.uniform(img.cols/4, img.cols*3/4); uniform 37 samples/cpp/minarea.cpp pt.y = rng.uniform(img.rows/4, img.rows*3/4); uniform 40 samples/cpp/tutorial_code/Histograms_Matching/calcHist_Demo.cpp bool uniform = true; bool accumulate = false; uniform 45 samples/cpp/tutorial_code/Histograms_Matching/calcHist_Demo.cpp calcHist( &bgr_planes[0], 1, 0, Mat(), b_hist, 1, &histSize, &histRange, uniform, accumulate ); uniform 46 samples/cpp/tutorial_code/Histograms_Matching/calcHist_Demo.cpp calcHist( &bgr_planes[1], 1, 0, Mat(), g_hist, 1, &histSize, &histRange, uniform, accumulate ); uniform 47 samples/cpp/tutorial_code/Histograms_Matching/calcHist_Demo.cpp calcHist( &bgr_planes[2], 1, 0, Mat(), r_hist, 1, &histSize, &histRange, uniform, accumulate ); uniform 67 samples/cpp/tutorial_code/ImgTrans/copyMakeBorder_demo.cpp Scalar value( rng.uniform(0, 255), rng.uniform(0, 255), rng.uniform(0, 255) ); uniform 139 samples/cpp/tutorial_code/ImgTrans/imageSegmentation.cpp int b = theRNG().uniform(0, 255); uniform 140 samples/cpp/tutorial_code/ImgTrans/imageSegmentation.cpp int g = theRNG().uniform(0, 255); uniform 141 samples/cpp/tutorial_code/ImgTrans/imageSegmentation.cpp int r = theRNG().uniform(0, 255); uniform 72 samples/cpp/tutorial_code/ShapeDescriptors/findContours_demo.cpp Scalar color = Scalar( rng.uniform(0, 255), rng.uniform(0,255), rng.uniform(0,255) ); uniform 80 samples/cpp/tutorial_code/ShapeDescriptors/generalContours_demo1.cpp Scalar color = Scalar( rng.uniform(0, 255), rng.uniform(0,255), rng.uniform(0,255) ); uniform 77 samples/cpp/tutorial_code/ShapeDescriptors/generalContours_demo2.cpp Scalar color = Scalar( rng.uniform(0, 255), rng.uniform(0,255), rng.uniform(0,255) ); uniform 74 samples/cpp/tutorial_code/ShapeDescriptors/hull_demo.cpp Scalar color = Scalar( rng.uniform(0, 255), rng.uniform(0,255), rng.uniform(0,255) ); uniform 77 samples/cpp/tutorial_code/ShapeDescriptors/moments_demo.cpp Scalar color = Scalar( rng.uniform(0, 255), rng.uniform(0,255), rng.uniform(0,255) ); uniform 91 samples/cpp/tutorial_code/ShapeDescriptors/moments_demo.cpp Scalar color = Scalar( rng.uniform(0, 255), rng.uniform(0,255), rng.uniform(0,255) ); uniform 100 samples/cpp/tutorial_code/TrackingMotion/cornerDetector_Demo.cpp { circle( myShiTomasi_copy, Point(i,j), 4, Scalar( rng.uniform(0,255), rng.uniform(0,255), rng.uniform(0,255) ), -1, 8, 0 ); } uniform 119 samples/cpp/tutorial_code/TrackingMotion/cornerDetector_Demo.cpp { circle( myHarris_copy, Point(i,j), 4, Scalar( rng.uniform(0,255), rng.uniform(0,255), rng.uniform(0,255) ), -1, 8, 0 ); } uniform 88 samples/cpp/tutorial_code/TrackingMotion/cornerSubPix_Demo.cpp { circle( copy, corners[i], r, Scalar(rng.uniform(0,255), rng.uniform(0,255), rng.uniform(0,255)), -1, 8, 0 ); } uniform 88 samples/cpp/tutorial_code/TrackingMotion/goodFeaturesToTrack_Demo.cpp { circle( copy, corners[i], r, Scalar(rng.uniform(0,255), rng.uniform(0,255), rng.uniform(0,255)), -1, 8, 0 ); } uniform 114 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp pt1.x = rng.uniform( x_1, x_2 ); uniform 115 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp pt1.y = rng.uniform( y_1, y_2 ); uniform 116 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp pt2.x = rng.uniform( x_1, x_2 ); uniform 117 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp pt2.y = rng.uniform( y_1, y_2 ); uniform 119 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp line( image, pt1, pt2, randomColor(rng), rng.uniform(1, 10), 8 ); uniform 135 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp int thickness = rng.uniform( -3, 10 ); uniform 139 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp pt1.x = rng.uniform( x_1, x_2 ); uniform 140 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp pt1.y = rng.uniform( y_1, y_2 ); uniform 141 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp pt2.x = rng.uniform( x_1, x_2 ); uniform 142 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp pt2.y = rng.uniform( y_1, y_2 ); uniform 164 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp center.x = rng.uniform(x_1, x_2); uniform 165 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp center.y = rng.uniform(y_1, y_2); uniform 168 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp axes.width = rng.uniform(0, 200); uniform 169 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp axes.height = rng.uniform(0, 200); uniform 171 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp double angle = rng.uniform(0, 180); uniform 174 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp randomColor(rng), rng.uniform(-1,9), lineType ); uniform 195 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp pt[0][0].x = rng.uniform(x_1, x_2); uniform 196 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp pt[0][0].y = rng.uniform(y_1, y_2); uniform 197 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp pt[0][1].x = rng.uniform(x_1, x_2); uniform 198 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp pt[0][1].y = rng.uniform(y_1, y_2); uniform 199 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp pt[0][2].x = rng.uniform(x_1, x_2); uniform 200 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp pt[0][2].y = rng.uniform(y_1, y_2); uniform 201 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp pt[1][0].x = rng.uniform(x_1, x_2); uniform 202 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp pt[1][0].y = rng.uniform(y_1, y_2); uniform 203 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp pt[1][1].x = rng.uniform(x_1, x_2); uniform 204 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp pt[1][1].y = rng.uniform(y_1, y_2); uniform 205 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp pt[1][2].x = rng.uniform(x_1, x_2); uniform 206 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp pt[1][2].y = rng.uniform(y_1, y_2); uniform 211 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp polylines(image, ppt, npt, 2, true, randomColor(rng), rng.uniform(1,10), lineType); uniform 230 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp pt[0][0].x = rng.uniform(x_1, x_2); uniform 231 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp pt[0][0].y = rng.uniform(y_1, y_2); uniform 232 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp pt[0][1].x = rng.uniform(x_1, x_2); uniform 233 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp pt[0][1].y = rng.uniform(y_1, y_2); uniform 234 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp pt[0][2].x = rng.uniform(x_1, x_2); uniform 235 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp pt[0][2].y = rng.uniform(y_1, y_2); uniform 236 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp pt[1][0].x = rng.uniform(x_1, x_2); uniform 237 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp pt[1][0].y = rng.uniform(y_1, y_2); uniform 238 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp pt[1][1].x = rng.uniform(x_1, x_2); uniform 239 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp pt[1][1].y = rng.uniform(y_1, y_2); uniform 240 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp pt[1][2].x = rng.uniform(x_1, x_2); uniform 241 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp pt[1][2].y = rng.uniform(y_1, y_2); uniform 265 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp center.x = rng.uniform(x_1, x_2); uniform 266 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp center.y = rng.uniform(y_1, y_2); uniform 268 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp circle( image, center, rng.uniform(0, 300), randomColor(rng), uniform 269 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp rng.uniform(-1, 9), lineType ); uniform 289 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp org.x = rng.uniform(x_1, x_2); uniform 290 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp org.y = rng.uniform(y_1, y_2); uniform 292 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp putText( image, "Testing text rendering", org, rng.uniform(0,8), uniform 293 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp rng.uniform(0,100)*0.05+0.1, randomColor(rng), rng.uniform(1, 10), lineType); uniform 105 samples/cpp/watershed.cpp int b = theRNG().uniform(0, 255); uniform 106 samples/cpp/watershed.cpp int g = theRNG().uniform(0, 255); uniform 107 samples/cpp/watershed.cpp int r = theRNG().uniform(0, 255);