Home
last modified time | relevance | path

Searched refs:RNG (Results 1 – 25 of 140) sorted by relevance

123456

/external/opencv3/samples/cpp/tutorial_code/core/Matrix/
DDrawing_2.cpp26 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 );
31 int Drawing_Random_Filled_Polygons( Mat image, char* window_name, RNG rng );
32 int Drawing_Random_Circles( Mat image, char* window_name, RNG rng );
33 int Displaying_Random_Text( Mat image, char* window_name, RNG rng );
34 int Displaying_Big_End( Mat image, char* window_name, RNG rng );
48 RNG rng( 0xFFFFFFFF ); in main()
[all …]
/external/opencv3/samples/cpp/tutorial_code/ml/non_linear_svms/
Dnon_linear_svms.cpp37 RNG rng(100); // Random value generation class in main()
47 rng.fill(c, RNG::UNIFORM, Scalar(1), Scalar(0.4 * WIDTH)); in main()
50 rng.fill(c, RNG::UNIFORM, Scalar(1), Scalar(HEIGHT)); in main()
56 rng.fill(c, RNG::UNIFORM, Scalar(0.6*WIDTH), Scalar(WIDTH)); in main()
59 rng.fill(c, RNG::UNIFORM, Scalar(1), Scalar(HEIGHT)); in main()
68 rng.fill(c, RNG::UNIFORM, Scalar(0.4*WIDTH), Scalar(0.6*WIDTH)); in main()
71 rng.fill(c, RNG::UNIFORM, Scalar(1), Scalar(HEIGHT)); in main()
/external/opencv3/modules/calib3d/test/
Dtest_decompose_projection.cpp64 cv::RNG& rng = ts->get_rng(); in run()
75 rng.fill(f, cv::RNG::UNIFORM, 300, 1000); in run()
76 rng.fill(c, cv::RNG::UNIFORM, 150, 600); in run()
86 rng.fill(rVec, cv::RNG::UNIFORM, -CV_PI, CV_PI); in run()
92 rng.fill(origT, cv::RNG::NORMAL, 0, 1); in run()
Dtest_fisheye.cpp150 cv::RNG r; in TEST_F()
152 r.fill(X, cv::RNG::NORMAL, 2, 1); in TEST_F()
155 r.fill(om, cv::RNG::NORMAL, 0, 1); in TEST_F()
158 r.fill(T, cv::RNG::NORMAL, 0, 1); in TEST_F()
161 r.fill(f, cv::RNG::NORMAL, 0, 1); in TEST_F()
164 r.fill(c, cv::RNG::NORMAL, 0, 1); in TEST_F()
167 r.fill(k, cv::RNG::NORMAL, 0, 1); in TEST_F()
182 r.fill(dT, cv::RNG::NORMAL, 0, 1); in TEST_F()
191 r.fill(dom, cv::RNG::NORMAL, 0, 1); in TEST_F()
200 r.fill(df, cv::RNG::NORMAL, 0, 1); in TEST_F()
[all …]
Dtest_solvepnp_ransac.cpp82 void generateCameraMatrix(Mat& cameraMatrix, RNG& rng) in generateCameraMatrix()
95 void generateDistCoeffs(Mat& distCoeffs, RNG& rng) in generateDistCoeffs()
102 void generatePose(Mat& rvec, Mat& tvec, RNG& rng) in generatePose()
115 …virtual bool runTest(RNG& rng, int mode, int method, const vector<Point3f>& points, const double* … in runTest()
165 RNG rng = ts->get_rng(); in run()
211 …virtual bool runTest(RNG& rng, int mode, int method, const vector<Point3f>& points, const double* … in runTest()
Dtest_modelest.cpp116 RNG &rng = ts->get_rng();
187 RNG &rng = ts->get_rng();
221 RNG &rng = ts->get_rng();
Dtest_affine3.cpp85 cv::RNG rng; in TEST()
93 rng.fill(R, cv::RNG::UNIFORM, -10, 10, true); in TEST()
/external/opencv3/modules/core/include/opencv2/core/
Doperations.hpp333 inline RNG::RNG() { state = 0xffffffff; } in RNG() function in cv::RNG
334 inline RNG::RNG(uint64 _state) { state = _state ? _state : 0xffffffff; } in RNG() function in cv::RNG
336 inline RNG::operator uchar() { return (uchar)next(); } in operator uchar()
337 inline RNG::operator schar() { return (schar)next(); } in operator schar()
338 inline RNG::operator ushort() { return (ushort)next(); } in operator ushort()
339 inline RNG::operator short() { return (short)next(); } in operator short()
340 inline RNG::operator int() { return (int)next(); } in operator int()
341 inline RNG::operator unsigned() { return next(); } in operator unsigned()
342 inline RNG::operator float() { return next()*2.3283064365386962890625e-10f; } in operator float()
343 inline RNG::operator double() { unsigned t = next(); return (((uint64)t << 32) | next()) * 5.4210… in operator double()
[all …]
/external/opencv3/modules/ts/include/opencv2/
Dts.hpp46 using cv::RNG;
59 CV_EXPORTS void randUni( RNG& rng, Mat& a, const Scalar& param1, const Scalar& param2 );
61 inline unsigned randInt( RNG& rng ) in randInt()
66 inline double randReal( RNG& rng ) in randReal()
89 CV_EXPORTS Size randomSize(RNG& rng, double maxSizeLog);
90 CV_EXPORTS void randomSize(RNG& rng, int minDims, int maxDims, double maxSizeLog, vector<int>& sz);
91 CV_EXPORTS int randomType(RNG& rng, int typeMask, int minChannels, int maxChannels);
92 CV_EXPORTS Mat randomMat(RNG& rng, Size size, int type, double minVal, double maxVal, bool useRoi);
93 CV_EXPORTS Mat randomMat(RNG& rng, const vector<int>& size, int type, double minVal, double maxVal,…
404 RNG& get_rng() { return rng; } in get_rng()
[all …]
/external/opencv3/modules/core/test/
Dtest_countnonzero.cpp108 int n = 0; RNG& rng = ts->get_rng(); in generate_src_data()
137 RNG& rng = ts->get_rng(); in generate_src_stat_data()
139 if (distribution == RNG::NORMAL) in generate_src_stat_data()
140 rng.fill(src, RNG::NORMAL, Scalar::all(mean), Scalar::all(sigma)); in generate_src_stat_data()
141 else if (distribution == RNG::UNIFORM) in generate_src_stat_data()
142 rng.fill(src, RNG::UNIFORM, Scalar::all(left), Scalar::all(right)); in generate_src_stat_data()
192 RNG& rng = ts->get_rng(); in run()
Dtest_arithm.cpp31 virtual void getRandomSize(RNG& rng, vector<int>& size) in getRandomSize()
36 virtual int getRandomType(RNG& rng) in getRandomType()
43 virtual void generateScalars(int depth, RNG& rng) in generateScalars()
412 void generateScalars(int depth, RNG& rng) in generateScalars()
425 int getRandomType(RNG& rng) in getRandomType()
440 void generateScalars(int depth, RNG& rng) in generateScalars()
455 int getRandomType(RNG& rng) in getRandomType()
478 int getRandomType(RNG& rng) in getRandomType()
500 int getRandomType(RNG& rng) in getRandomType()
665 void generateScalars(int depth, RNG& rng) in generateScalars()
[all …]
Dtest_rand.cpp97 RNG& rng = ts->get_rng(); in run()
98 RNG tested_rng = theRNG(); in run()
163 cv::RNG saved_rng = tested_rng; in run()
318 theRNG().fill(a, RNG::UNIFORM, -DBL_MAX, DBL_MAX); in run()
319 theRNG().fill(af, RNG::UNIFORM, -DBL_MAX, DBL_MAX); in run()
/external/opencv3/modules/photo/test/
Dtest_denoise_tvl1.cpp43 void make_noisy(const cv::Mat& img, cv::Mat& noisy, double sigma, double pepper_salt_ratio,cv::RNG&… in make_noisy()
47 rng.fill(noise,cv::RNG::NORMAL,128.0,sigma); in make_noisy()
58 void make_spotty(cv::Mat& img,cv::RNG& rng, int r=3,int n=1000) in make_spotty()
79 cv::RNG rng(42); in TEST()
/external/opencv3/modules/video/test/
Dtest_estimaterigid.cpp85 cv::RNG rng = ts->get_rng(); in testNPoints()
96 rng.fill(aff, RNG::UNIFORM, Scalar(-2), Scalar(2)); in testNPoints()
103 rng.fill(fpts, RNG::UNIFORM, Scalar(0,0), Scalar(10,10)); in testNPoints()
107 … rng.fill(noise, RNG::NORMAL, Scalar::all(0), Scalar::all(0.001*(n<=7 ? 0 : n <= 30 ? 1 : 10))); in testNPoints()
Dtest_ecc.cpp126 cv::RNG rng = ts->get_rng(); in testTranslation()
201 cv::RNG rng = ts->get_rng(); in testEuclidean()
275 cv::RNG rng = ts->get_rng(); in testAffine()
351 cv::RNG rng = ts->get_rng(); in testHomography()
426 cv::RNG rng = ts->get_rng(); in testMask()
/external/opencv3/modules/core/src/
Drand.cpp401 double RNG::gaussian(double sigma) in gaussian()
481 void RNG::fill( InputOutputArray _mat, int disttype, in fill()
732 cv::RNG& cv::theRNG() in theRNG()
739 theRNG().fill(dst, RNG::UNIFORM, low, high); in randu()
744 theRNG().fill(dst, RNG::NORMAL, mean, stddev); in randn()
751 randShuffle_( Mat& _arr, RNG& rng, double ) in randShuffle_()
784 typedef void (*RandShuffleFunc)( Mat& dst, RNG& rng, double iterFactor );
788 void cv::randShuffle( InputOutputArray _dst, double iterFactor, RNG* _rng ) in randShuffle()
812 RNG& rng = _rng ? *_rng : theRNG(); in randShuffle()
824 cv::RNG& rng = _rng ? (cv::RNG&)*_rng : cv::theRNG(); in cvRandArr()
[all …]
/external/opencv3/doc/tutorials/core/random_generator_and_text/
Drandom_generator_and_text.markdown9 - Use the *Random Number generator class* (@ref cv::RNG ) and how to get a random number from a
29 *Random Number Generator* object (RNG):
31 RNG rng( 0xFFFFFFFF );
33 RNG implements a random number generator. In this example, *rng* is a RNG element initialized
84 int Drawing_Random_Lines( Mat image, char* window_name, RNG rng )
126 static Scalar randomColor( RNG& rng )
142 int Displaying_Random_Text( Mat image, char* window_name, RNG rng )
183 int Displaying_Big_End( Mat image, char* window_name, RNG rng )
/external/opencv3/samples/gpu/
Dmulti.cpp86 RNG rng(0); in operator ()()
87 rng.fill(src, RNG::UNIFORM, 0, 1); in operator ()()
Ddriver_api_multi.cpp129 RNG rng(0); in operator ()()
130 rng.fill(src, RNG::UNIFORM, 0, 1); in operator ()()
/external/opencv3/samples/cpp/
Dkmeans.cpp31 RNG rng(12345); in main()
51 …rng.fill(pointChunk, RNG::NORMAL, Scalar(center.x, center.y), Scalar(img.cols*0.05, img.rows*0.05)… in main()
/external/opencv3/modules/imgproc/test/
Dtest_bilateral_filter.cpp71 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 in getRandInt()
237 RNG& rng = ts->get_rng(); in prepare_test_case()
245 rng.fill(_src, RNG::UNIFORM, 0, 256); in prepare_test_case()
Dtest_lsd.cpp20 RNG rng;
57 rng.fill(image, RNG::UNIFORM, 0, 256); in GenerateWhiteNoise()
103 rng = RNG(LSD_TEST_SEED); in SetUp()
/external/opencv3/modules/core/perf/
Dperf_math.cpp32 RNG& rng = theRNG();
45 rng.fill(data0, RNG::UNIFORM, -1, 1);
/external/opencv3/modules/imgproc/perf/
Dperf_remap.cpp40 RNG rng; in PERF_TEST_P()
41 rng.fill(src, RNG::UNIFORM, 0, 256); in PERF_TEST_P()
/external/opencv3/modules/features2d/test/
Dtest_mser.cpp58 RNG rng((uint64)1749583); in renderMSERs()
102 RNG rng((uint64)123456); in TEST()

123456