/external/opencv3/modules/calib3d/test/ |
test_decompose_projection.cpp | 64 cv::RNG& rng = ts->get_rng(); local 75 rng.fill(f, cv::RNG::UNIFORM, 300, 1000); 76 rng.fill(c, cv::RNG::UNIFORM, 150, 600); 78 double alpha = 0.01*rng.gaussian(1); 86 rng.fill(rVec, cv::RNG::UNIFORM, -CV_PI, CV_PI); 92 rng.fill(origT, cv::RNG::NORMAL, 0, 1) [all...] |
test_affine3.cpp | 85 cv::RNG rng; local 93 rng.fill(R, cv::RNG::UNIFORM, -10, 10, true);
|
test_solvepnp_ransac.cpp | 82 void generateCameraMatrix(Mat& cameraMatrix, RNG& rng) 88 cameraMatrix.at<double>(0,0) = rng.uniform(fcMinVal, fcMaxVal); 89 cameraMatrix.at<double>(1,1) = rng.uniform(fcMinVal, fcMaxVal); 90 cameraMatrix.at<double>(0,2) = rng.uniform(fcMinVal, fcMaxVal); 91 cameraMatrix.at<double>(1,2) = rng.uniform(fcMinVal, fcMaxVal); 95 void generateDistCoeffs(Mat& distCoeffs, RNG& rng) 99 distCoeffs.at<double>(i,0) = rng.uniform(0.0, 1.0e-6); 102 void generatePose(Mat& rvec, Mat& tvec, RNG& rng 165 RNG rng = ts->get_rng(); local [all...] |
/external/opencv3/samples/cpp/tutorial_code/core/Matrix/ |
Drawing_2.cpp | 26 static Scalar randomColor( RNG& rng ); 27 int Drawing_Random_Lines( Mat image, char* window_name, RNG rng ); 28 int Drawing_Random_Rectangles( Mat image, char* window_name, RNG rng ); 29 int Drawing_Random_Ellipses( Mat image, char* window_name, RNG rng ); 30 int Drawing_Random_Polylines( Mat image, char* window_name, RNG rng ); [all...] |
/external/opencv3/samples/cpp/tutorial_code/ml/non_linear_svms/ |
non_linear_svms.cpp | 37 RNG rng(100); // Random value generation class 47 rng.fill(c, RNG::UNIFORM, Scalar(1), Scalar(0.4 * WIDTH)); 50 rng.fill(c, RNG::UNIFORM, Scalar(1), Scalar(HEIGHT)); 56 rng.fill(c, RNG::UNIFORM, Scalar(0.6*WIDTH), Scalar(WIDTH)); 59 rng.fill(c, RNG::UNIFORM, Scalar(1), Scalar(HEIGHT)) [all...] |
/external/opencv3/samples/cpp/ |
kmeans.cpp | 31 RNG rng(12345); 35 int k, clusterCount = rng.uniform(2, MAX_CLUSTERS+1); 36 int i, sampleCount = rng.uniform(1, 1001); 46 center.x = rng.uniform(0, img.cols); 47 center.y = rng.uniform(0, img.rows); 51 rng.fill(pointChunk, RNG::NORMAL, Scalar(center.x, center.y), Scalar(img.cols*0.05, img.rows*0.05)); 54 randShuffle(points, 1, &rng);
|
convexhull.cpp | 19 RNG& rng = theRNG(); local 26 int i, count = (unsigned)rng%100 + 1; 33 pt.x = rng.uniform(img.cols/4, img.cols*3/4); 34 pt.y = rng.uniform(img.rows/4, img.rows*3/4);
|
minarea.cpp | 25 RNG& rng = theRNG(); local 29 int i, count = rng.uniform(1, 101); 36 pt.x = rng.uniform(img.cols/4, img.cols*3/4); 37 pt.y = rng.uniform(img.rows/4, img.rows*3/4);
|
/external/opencv3/samples/gpu/ |
multi.cpp | 86 RNG rng(0); 87 rng.fill(src, RNG::UNIFORM, 0, 1);
|
driver_api_multi.cpp | 129 RNG rng(0); 130 rng.fill(src, RNG::UNIFORM, 0, 1);
|
/external/opencv3/modules/photo/test/ |
test_denoise_tvl1.cpp | 43 void make_noisy(const cv::Mat& img, cv::Mat& noisy, double sigma, double pepper_salt_ratio,cv::RNG& rng) 47 rng.fill(noise,cv::RNG::NORMAL,128.0,sigma); 58 void make_spotty(cv::Mat& img,cv::RNG& rng, int r=3,int n=1000) 62 int x=rng(img.cols-r),y=rng(img.rows-r); 63 if(rng(2)==0) 79 cv::RNG rng(42) [all...] |
/external/opencv3/modules/video/test/ |
test_estimaterigid.cpp | 85 cv::RNG rng = ts->get_rng(); local 96 rng.fill(aff, RNG::UNIFORM, Scalar(-2), Scalar(2)); 98 int n = (unsigned)rng % 100 + 10; 103 rng.fill(fpts, RNG::UNIFORM, Scalar(0,0), Scalar(10,10)); 107 rng.fill(noise, RNG::NORMAL, Scalar::all(0), Scalar::all(0.001*(n<=7 ? 0 : n <= 30 ? 1 : 10)));
|
/external/opencv3/samples/cpp/tutorial_code/ImgTrans/ |
copyMakeBorder_demo.cpp | 20 RNG rng(12345); 67 Scalar value( rng.uniform(0, 255), rng.uniform(0, 255), rng.uniform(0, 255) );
|
/external/opencv3/modules/ts/include/opencv2/ |
ts.hpp | 46 using cv::RNG; 59 CV_EXPORTS void randUni( RNG& rng, Mat& a, const Scalar& param1, const Scalar& param2 ); 61 inline unsigned randInt( RNG& rng ) 63 return (unsigned)rng; 66 inline double randReal( RNG& rng ) 68 return (double)rng; 89 CV_EXPORTS Size randomSize(RNG& rng, double maxSizeLog) 420 RNG rng; member in class:cvtest::TS [all...] |
/external/opencv3/modules/core/test/ |
test_countnonzero.cpp | 108 int n = 0; RNG& rng = ts->get_rng(); local 112 int i = rng.next()%size.height, j = rng.next()%size.width; 137 RNG& rng = ts->get_rng(); local 139 if (distribution == RNG::NORMAL) 140 rng.fill(src, RNG::NORMAL, Scalar::all(mean), Scalar::all(sigma)); 141 else if (distribution == RNG::UNIFORM 192 RNG& rng = ts->get_rng(); local [all...] |
/external/opencv3/modules/core/include/opencv2/core/ |
operations.hpp | 331 /////////////////////////////////// Multiply-with-Carry RNG /////////////////////////////////// 333 inline RNG::RNG() { state = 0xffffffff; } 334 inline RNG::RNG(uint64 _state) { state = _state ? _state : 0xffffffff; } 336 inline RNG::operator uchar() { return (uchar)next(); } 337 inline RNG::operator schar() { return (schar)next(); } 338 inline RNG::operator ushort() { return (ushort)next(); } 339 inline RNG::operator short() { return (short)next(); } 340 inline RNG::operator int() { return (int)next(); [all...] |
/external/opencv3/modules/core/perf/ |
perf_math.cpp | 32 RNG& rng = theRNG(); local 39 dims = rng.uniform(1, MAX_DIM+1); 40 N = rng.uniform(1, MAX_POINTS+1); 41 N0 = rng.uniform(1, MAX(N/10, 2)); 42 K = rng.uniform(1, N+1); 45 rng.fill(data0, RNG::UNIFORM, -1, 1); 49 data0.row(rng.uniform(0, N0)).copyTo(data.row(i));
|
/external/opencv3/modules/features2d/test/ |
test_mser.cpp | 58 RNG rng((uint64)1749583); 61 uchar b = rng.uniform(0, 256); 62 uchar g = rng.uniform(0, 256); 63 uchar r = rng.uniform(0, 256); 102 RNG rng((uint64)123456); 106 bool use_big_image = rng.uniform(0, 7) != 0; 107 bool invert = rng.uniform(0, 2) != 0; 108 bool binarize = use_big_image ? rng.uniform(0, 5) != 0 : false [all...] |
/external/opencv3/modules/imgproc/perf/ |
perf_remap.cpp | 40 RNG rng; local 41 rng.fill(src, RNG::UNIFORM, 0, 256);
|
/external/opencv3/modules/flann/test/ |
test_lshtable_badarg.cpp | 67 RNG &rng = ts->get_rng(); local 70 Size featuresSize = cvtest::randomSize(rng, 10.0); 71 caller.features = cvtest::randomMat(rng, featuresSize, CV_8UC1, 0, 255, false); 82 caller.key_size += cvtest::randInt(rng) % 100;
|
/external/opencv3/modules/ml/test/ |
test_svmtrainauto.cpp | 63 RNG rng(0); 66 int response = rng.uniform(0, 2); // Random from {0, 1}. 67 samples.at<float>( i, 0 ) = rng.uniform(0.f, 0.5f) + response * 0.5f; 68 samples.at<float>( i, 1 ) = rng.uniform(0.f, 0.5f) + response * 0.5f;
|
/external/opencv3/samples/cpp/tutorial_code/ShapeDescriptors/ |
findContours_demo.cpp | 20 RNG rng(12345); 72 Scalar color = Scalar( rng.uniform(0, 255), rng.uniform(0,255), rng.uniform(0,255) );
|
hull_demo.cpp | 20 RNG rng(12345); 74 Scalar color = Scalar( rng.uniform(0, 255), rng.uniform(0,255), rng.uniform(0,255) );
|
/external/opencv3/samples/cpp/tutorial_code/TrackingMotion/ |
cornerSubPix_Demo.cpp | 23 RNG rng(12345); 88 { circle( copy, corners[i], r, Scalar(rng.uniform(0,255), rng.uniform(0,255), rng.uniform(0,255)), -1, 8, 0 ); }
|
goodFeaturesToTrack_Demo.cpp | 23 RNG rng(12345); 88 { circle( copy, corners[i], r, Scalar(rng.uniform(0,255), rng.uniform(0,255), rng.uniform(0,255)), -1, 8, 0 ); }
|