/external/opencv3/modules/calib3d/test/ |
test_fisheye.cpp | 150 cv::RNG r; 152 r.fill(X, cv::RNG::NORMAL, 2, 1); 155 r.fill(om, cv::RNG::NORMAL, 0, 1); 158 r.fill(T, cv::RNG::NORMAL, 0, 1); 161 r.fill(f, cv::RNG::NORMAL, 0, 1); 164 r.fill(c, cv::RNG::NORMAL, 0, 1); 167 r.fill(k, cv::RNG::NORMAL, 0, 1); 182 r.fill(dT, cv::RNG::NORMAL, 0, 1); 191 r.fill(dom, cv::RNG::NORMAL, 0, 1); 200 r.fill(df, cv::RNG::NORMAL, 0, 1) [all...] |
test_modelest.cpp | 116 RNG &rng = ts->get_rng(); local 117 checkPartialSubsets = (cvtest::randInt(rng) % 2 == 0); 119 int pointsCount = cvtest::randInt(rng) % maxPointsCount; 120 usedPointsCount = pointsCount == 0 ? 0 : cvtest::randInt(rng) % pointsCount; 187 RNG &rng = ts->get_rng(); local 191 startPointIndex = cvtest::randInt(rng) % usedPointsCount; 192 endPointIndex = cvtest::randInt(rng) % usedPointsCount; 193 modifiedPointIndex = checkPartialSubsets ? usedPointsCount - 1 : cvtest::randInt(rng) % usedPointsCount [all...] |
test_cornerssubpix.cpp | 125 RNG& rng = ts->get_rng(); local 137 const int pattern_width = min_pattern_size + cvtest::randInt(rng) % (max_pattern_size - min_pattern_size); 138 const int pattern_height = min_pattern_size + cvtest::randInt(rng) % (max_pattern_size - min_pattern_size); 224 RNG& rng = ts->get_rng(); local 228 double fx = cvtest::randReal(rng)*max_focus_length; 229 double fy = fx + cvtest::randReal(rng)*max_focus_diff; 233 double k1 = 0.5*cvtest::randReal(rng); 234 double k2 = 0.05*cvtest::randReal(rng); [all...] |
test_affine3d_estimator.cpp | 126 RNG& rng = theRNG(); local 127 return Point3f( p.x + l * (float)rng, p.y + l * (float)rng, p.z + l * (float)rng);
|
/external/opencv3/modules/core/test/ |
test_rotatedrect.cpp | 69 RNG& rng = ts->get_rng(); local 70 a = Point2f( rng.uniform(-MAX_COORD_VAL, MAX_COORD_VAL), rng.uniform(-MAX_COORD_VAL, MAX_COORD_VAL) ); 73 b = Point2f( rng.uniform(-MAX_COORD_VAL, MAX_COORD_VAL), rng.uniform(-MAX_COORD_VAL, MAX_COORD_VAL) ); 78 double d = (double) rng.uniform(1.0f, 5.0f); 79 if( cvtest::randInt(rng) % 2 == 0 ) d = -d;
|
test_arithm.cpp | 31 virtual void getRandomSize(RNG& rng, vector<int>& size) 33 cvtest::randomSize(rng, 2, ARITHM_MAX_NDIMS, cvtest::ARITHM_MAX_SIZE_LOG, size); 36 virtual int getRandomType(RNG& rng) 38 return cvtest::randomType(rng, _OutputArray::DEPTH_MASK_ALL_BUT_8S, 1, 43 virtual void generateScalars(int depth, RNG& rng) 49 alpha = exp(rng.uniform(-0.5, 0.1)*m*2*CV_LOG2); 50 alpha *= rng.uniform(0, 2) ? 1 : -1 [all...] |
test_rand.cpp | 97 RNG& rng = ts->get_rng(); 98 RNG tested_rng = theRNG(); 106 int depth = cvtest::randInt(rng) % (CV_64F+1); 107 int c, cn = (cvtest::randInt(rng) % 4) + 1; 109 int dist_type = cvtest::randInt(rng) % (CV_RAND_NORMAL+1); 130 a = (int)(cvtest::randInt(rng) % (_ranges[depth][1] - 134 b = (int)(cvtest::randInt(rng) % (_ranges[depth][1] - 153 a = cvtest::randInt(rng) % meanrange - meanrange/2 + 155 b = cvtest::randInt(rng) % (maxdiv - mindiv) + mindiv [all...] |
test_mat.cpp | 304 RNG& rng = ts->get_rng(); local 306 rng.fill( rPoints, RNG::UNIFORM, Scalar::all(0.0), Scalar::all(1.0) ); 307 rng.fill( rTestPoints, RNG::UNIFORM, Scalar::all(0.0), Scalar::all(1.0) ); 582 static double getValue(SparseMat& M, const int* idx, RNG& rng) 586 if( (unsigned)rng % 2 ) 606 static void eraseValue(SparseMat& M, const int* idx, RNG& rng 671 RNG rng; local 739 RNG rng; local 1003 RNG& rng = theRNG(); local [all...] |
/external/opencv3/modules/imgproc/test/ |
test_bilateral_filter.cpp | 71 int getRandInt(RNG& rng, int min_value, int max_value) const; 91 int CV_BilateralFilterTest::getRandInt(RNG& rng, int min_value, int max_value) const 93 double rand_value = rng.uniform(log((double)min_value), log((double)max_value + 1)); 237 RNG& rng = ts->get_rng(); local 238 Size size(getRandInt(rng, MIN_WIDTH, MAX_WIDTH), getRandInt(rng, MIN_HEIGHT, MAX_HEIGHT)); 239 int type = types[rng(sizeof(types) / sizeof(types[0]))] [all...] |
test_lsd.cpp | 20 RNG rng; member in class:LSDBase 57 rng.fill(image, RNG::UNIFORM, 0, 256); 62 image = Mat(img_size, CV_8UC1, Scalar::all(rng.uniform(0, 256))); 67 image = Mat(img_size, CV_8UC1, Scalar::all(rng.uniform(0, 128))); 71 int y = rng.uniform(10, img_size.width - 10); 82 Point center(rng.uniform(img_size.width/4, img_size.width*3/4), 83 rng.uniform(img_size.height/4, img_size.height*3/4)); 84 Size rect_size(rng.uniform(img_size.width/8, img_size.width/6) [all...] |
test_distancetransform.cpp | 83 RNG& rng = ts->get_rng(); local 90 if( cvtest::randInt(rng) & 1 ) 99 dist_type = cvtest::randInt(rng) % 3; 135 RNG& rng = ts->get_rng(); local 136 int i = cvtest::randInt(rng) % mat.rows; 137 int j = cvtest::randInt(rng) % mat.cols;
|
/external/opencv3/samples/cpp/tutorial_code/ShapeDescriptors/ |
generalContours_demo1.cpp | 20 RNG rng(12345); 80 Scalar color = Scalar( rng.uniform(0, 255), rng.uniform(0,255), rng.uniform(0,255) );
|
generalContours_demo2.cpp | 20 RNG rng(12345); 77 Scalar color = Scalar( rng.uniform(0, 255), rng.uniform(0,255), rng.uniform(0,255) );
|
moments_demo.cpp | 20 RNG rng(12345); 77 Scalar color = Scalar( rng.uniform(0, 255), rng.uniform(0,255), rng.uniform(0,255) ); 91 Scalar color = Scalar( rng.uniform(0, 255), rng.uniform(0,255), rng.uniform(0,255) );
|
/external/opencv3/modules/core/src/ |
rand.cpp | 401 double RNG::gaussian(double sigma) 481 void RNG::fill( InputOutputArray _mat, int disttype, 732 cv::RNG& cv::theRNG() 734 return getCoreTlsData().get()->rng; 739 theRNG().fill(dst, RNG::UNIFORM, low, high); 744 theRNG().fill(dst, RNG::NORMAL, mean, stddev); 751 randShuffle_( Mat& _arr, RNG& rng, double ) 759 unsigned j = (unsigned)rng % sz; 775 unsigned k1 = (unsigned)rng % sz 812 RNG& rng = _rng ? *_rng : theRNG(); local 824 cv::RNG& rng = _rng ? (cv::RNG&)*_rng : cv::theRNG(); local 832 cv::RNG& rng = _rng ? (cv::RNG&)*_rng : cv::theRNG(); local [all...] |
kmeans.cpp | 51 static void generateRandomCenter(const std::vector<Vec2f>& box, float* center, RNG& rng) 56 center[j] = ((float)rng*(1.f+margin*2.f)-margin)*(box[j][1] - box[j][0]) + box[j][0]; 102 int K, RNG& rng, int trials) 113 centers[0] = (unsigned)rng % N; 128 double p = (double)rng*sum0, s = 0; 262 RNG& rng = theRNG(); local 307 generateCentersPP(data, centers, K, rng, SPP_TRIALS) [all...] |
/external/opencv3/modules/video/test/ |
test_ecc.cpp | 126 cv::RNG rng = ts->get_rng(); local 135 Mat translationGround = (Mat_<float>(2,3) << 1, 0, (rng.uniform(10.f, 20.f)), 136 0, 1, (rng.uniform(10.f, 20.f))); 201 cv::RNG rng = ts->get_rng(); local 208 double angle = CV_PI/30 + CV_PI*rng.uniform((double)-2.f, (double)2.f)/180; 210 Mat euclideanGround = (Mat_<float>(2,3) << cos(angle), -sin(angle), (rng.uniform(10.f, 20.f)), 211 sin(angle), cos(angle), (rng.uniform(10.f, 20.f))); 275 cv::RNG rng = ts->get_rng() local 351 cv::RNG rng = ts->get_rng(); local 426 cv::RNG rng = ts->get_rng(); local [all...] |
test_kalman.cpp | 69 RNG& rng = ts->get_rng(); local 94 cvtest::randUni(rng, _Sample, cvScalarAll(-max_init), cvScalarAll(max_init)); 106 Temp->data.fl[j]= (float)(t+(cvtest::randReal(rng)*2-1)*max_noise);
|
/packages/apps/Dialer/tests/src/com/android/dialer/tests/calllog/ |
FillCallLogTestActivity.java | 75 private static final Random RNG = new Random(); 268 return String.format("5%09d", RNG.nextInt(1000000000)); 361 - RNG.nextInt(24 * 60 * 60 * (index + 1)) * 1000L); 364 values.put(Calls.DURATION, RNG.nextInt(30 * 60 * 60 * 1000)); 368 values.put(Calls.TYPE, CALL_TYPES[RNG.nextInt(CALL_TYPES.length)]); 539 dataUsage = (long) RNG.nextInt(52428800); 547 dateTime.getTimeInMillis(), RNG.nextInt(60 * 60), dataUsage);
|
/development/samples/Snake/src/com/example/android/snake/ |
SnakeView.java | 104 private static final Random RNG = new Random(); 383 int newX = 1 + RNG.nextInt(mXTileCount - 2); 384 int newY = 1 + RNG.nextInt(mYTileCount - 2);
|
/external/opencv3/samples/cpp/tutorial_code/TrackingMotion/ |
cornerDetector_Demo.cpp | 28 RNG rng(12345); 100 { circle( myShiTomasi_copy, Point(i,j), 4, Scalar( rng.uniform(0,255), rng.uniform(0,255), rng.uniform(0,255) ), -1, 8, 0 ); } 119 { circle( myHarris_copy, Point(i,j), 4, Scalar( rng.uniform(0,255), rng.uniform(0,255), rng.uniform(0,255) ), -1, 8, 0 ); }
|
/external/opencv3/modules/features2d/perf/ |
perf_batchDistance.cpp | 139 RNG& rng = theRNG(); local 144 rng.fill( buf, RNG::UNIFORM, Scalar::all(0), Scalar(3) ); 162 int elem = rng(dim); 163 float diff = rng.uniform( step*c, step*(c+1) );
|
/external/opencv3/samples/cpp/ |
drawing.cpp | 13 static Scalar randomColor(RNG& rng) 15 int icolor = (unsigned)rng; 28 RNG rng(0xFFFFFFFF); 37 pt1.x = rng.uniform(x1, x2); 38 pt1.y = rng.uniform(y1, y2); 39 pt2.x = rng.uniform(x1, x2); 40 pt2.y = rng.uniform(y1, y2); 42 line( image, pt1, pt2, randomColor(rng), rng.uniform(1,10), lineType ) [all...] |
/external/opencv3/samples/gpu/performance/ |
performance.cpp | 137 RNG rng(0); 138 rng.fill(mat, RNG::UNIFORM, low, high);
|
/art/runtime/ |
utils.h | 382 using RNG = Arc4RandomGenerator; 384 using RNG = std::random_device; 391 RNG rng; local 392 return dist(rng);
|