OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:randInt
(Results
1 - 25
of
33
) sorted by null
1
2
/external/apache-commons-math/src/main/java/org/apache/commons/math/random/
AbstractRandomGenerator.java
109
int
randInt
= nextInt();
112
randInt
=
randInt
>> 8;
114
bytes[bytesOut++] = (byte)
randInt
;
/external/opencv3/modules/calib3d/test/
test_modelest.cpp
117
checkPartialSubsets = (cvtest::
randInt
(rng) % 2 == 0);
119
int pointsCount = cvtest::
randInt
(rng) % maxPointsCount;
120
usedPointsCount = pointsCount == 0 ? 0 : cvtest::
randInt
(rng) % pointsCount;
191
startPointIndex = cvtest::
randInt
(rng) % usedPointsCount;
192
endPointIndex = cvtest::
randInt
(rng) % usedPointsCount;
193
modifiedPointIndex = checkPartialSubsets ? usedPointsCount - 1 : cvtest::
randInt
(rng) % usedPointsCount;
222
int modelPoints = cvtest::
randInt
(rng);
224
int maxBasicSolutions = cvtest::
randInt
(rng);
test_undistort.cpp
87
matrix_type = types[INPUT][0] = types[OUTPUT][0]= types[REF_OUTPUT][0] = cvtest::
randInt
(rng)%2 ? CV_64F : CV_32F;
100
img_size.width = cvtest::
randInt
(rng) % MAX_X + 1;
101
img_size.height = cvtest::
randInt
(rng) % MAX_Y + 1;
103
center_principal_point = ((cvtest::
randInt
(rng) % 2)!=0);
215
useCPlus = ((cvtest::
randInt
(rng) % 2)!=0);
223
types[INPUT][0] = types[OUTPUT][0] = types[REF_OUTPUT][0] = types[TEMP][0]= cvtest::
randInt
(rng)%2 ? CV_64FC2 : CV_32FC2;
225
types[INPUT][1] = cvtest::
randInt
(rng)%2 ? CV_64F : CV_32F;
226
types[INPUT][2] = cvtest::
randInt
(rng)%2 ? CV_64F : CV_32F;
227
types[INPUT][3] = cvtest::
randInt
(rng)%2 ? CV_64F : CV_32F;
228
types[INPUT][4] = cvtest::
randInt
(rng)%2 ? CV_64F : CV_32F
[
all
...]
test_fundam.cpp
569
int depth = cvtest::
randInt
(rng) % 2 == 0 ? CV_32F : CV_64F;
572
code = cvtest::
randInt
(rng) % 3;
590
if( cvtest::
randInt
(rng) % 2 )
604
calc_jacobians = cvtest::
randInt
(rng) % 3 != 0;
613
test_cpp = (cvtest::
randInt
(rng) & 256) == 0;
832
int pt_depth = cvtest::
randInt
(rng) % 2 == 0 ? CV_32F : CV_64F;
836
dims = cvtest::
randInt
(rng) % 2 + 2;
837
method = 1 << (cvtest::
randInt
(rng) % 4);
844
if( pt_count >= 8 && cvtest::
randInt
(rng) % 2 )
850
if( cvtest::
randInt
(rng) % 2
[
all
...]
test_cornerssubpix.cpp
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);
/external/opencv3/modules/core/test/
test_io.cpp
16
idx[j] = cvtest::
randInt
(rng) % sz[j];
110
int test_int = (int)cvtest::
randInt
(rng);
111
double test_real = (cvtest::
randInt
(rng)%2?1:-1)*exp(cvtest::randReal(rng)*18-9);
114
int depth = cvtest::
randInt
(rng) % (CV_64F+1);
115
int cn = cvtest::
randInt
(rng) % 4 + 1;
116
Mat test_mat(cvtest::
randInt
(rng)%30+1, cvtest::
randInt
(rng)%30+1, CV_MAKETYPE(depth, cn));
145
depth = cvtest::
randInt
(rng) % (CV_64F+1);
146
cn = cvtest::
randInt
(rng) % 4 + 1;
148
static_cast<int>(cvtest::
randInt
(rng)%10+1)
[
all
...]
test_ds.cpp
542
sseq->count = cvtest::
randInt
( rng ) % max_struct_size;
551
int k = cvtest::
randInt
( rng ) % cur_count;
557
int hdr_size = (cvtest::
randInt
(rng) % 10)*4 + sizeof(CvSeq);
561
if( cvtest::
randInt
(rng) % 2 )
572
cvSetSeqBlockSize( writer[struct_idx].seq, cvtest::
randInt
( rng ) % 10000 );
613
int idx = cvtest::
randInt
(rng) % (sseq->count*3) - sseq->count*3/2;
656
int pos = cvtest::
randInt
(rng) % 2;
672
int op = cvtest::
randInt
(rng) % max_val;
680
new_pos = cvtest::
randInt
(rng) % (total*2) - total;
746
struct_idx = cvtest::
randInt
(rng) % struct_count
[
all
...]
test_rand.cpp
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;
171
dsz = slice+1 < maxSlice ? (int)(cvtest::
randInt
(rng) % (SZ - sz + 1)) : SZ - sz;
255
int SDIM = cvtest::
randInt
(rng) % (MAX_SDIM-1) + 2;
test_rotatedrect.cpp
79
if( cvtest::
randInt
(rng) % 2 == 0 ) d = -d;
test_math.cpp
56
int depth = cvtest::
randInt
(rng)%2 + CV_32F;
57
int cn = cvtest::
randInt
(rng) % 4 + 1, type = CV_MAKETYPE(depth, cn);
67
test_nd = cvtest::
randInt
(rng)%3 == 0;
101
int depth = cvtest::
randInt
(rng) % (CV_64F+1);
102
int cn = cvtest::
randInt
(rng) % 4 + 1;
107
if( depth < CV_32F || cvtest::
randInt
(rng)%8 == 0 )
109
power = (int)(cvtest::
randInt
(rng)%21 - 10);
112
i = cvtest::
randInt
(rng)%17;
123
test_nd = cvtest::
randInt
(rng)%3 == 0;
139
double l, u = cvtest::
randInt
(ts->get_rng())%1000 + 1
[
all
...]
/external/opencv3/modules/imgproc/test/
test_approxpoly.cpp
130
int total = cvtest::
randInt
(rng) % 1000 + 1;
136
center.x = cvtest::
randInt
( rng ) % 1000;
137
center.y = cvtest::
randInt
( rng ) % 1000;
138
radius = cvtest::
randInt
( rng ) % 1000;
139
angle = cvtest::
randInt
( rng ) % 360;
145
int d_radius = cvtest::
randInt
( rng ) % 10 - 5;
146
int d_angle = 360/total;//cvtest::
randInt
( rng ) % 10 - 5;
test_contours.cpp
167
int angle = cvtest::
randInt
(rng) % 180;
168
int brightness = cvtest::
randInt
(rng) %
170
center.x = cvtest::
randInt
(rng) % size.width;
171
center.y = cvtest::
randInt
(rng) % size.height;
173
axes.width = (cvtest::
randInt
(rng) %
175
axes.height = (cvtest::
randInt
(rng) %
223
approx_method = cvtest::
randInt
( rng ) % 4 + 1;
224
retr_mode = cvtest::
randInt
( rng ) % 4;
test_distancetransform.cpp
90
if( cvtest::
randInt
(rng) & 1 )
99
dist_type = cvtest::
randInt
(rng) % 3;
136
int i = cvtest::
randInt
(rng) % mat.rows;
137
int j = cvtest::
randInt
(rng) % mat.cols;
test_floodfill.cpp
100
depth = cvtest::
randInt
(rng) % 3;
102
cn = cvtest::
randInt
(rng) & 1 ? 3 : 1;
104
use_mask = (cvtest::
randInt
(rng) & 1) != 0;
105
connectivity = (cvtest::
randInt
(rng) & 1) ? 4 : 8;
106
mask_only = use_mask && (cvtest::
randInt
(rng) & 1) != 0;
107
new_mask_val = cvtest::
randInt
(rng) & 255;
108
range_type = cvtest::
randInt
(rng) % 3;
123
seed_pt.x = cvtest::
randInt
(rng) % sizes[INPUT_OUTPUT][0].width;
124
seed_pt.y = cvtest::
randInt
(rng) % sizes[INPUT_OUTPUT][0].height;
143
test_cpp = (cvtest::
randInt
(rng) & 256) == 0
[
all
...]
test_thresh.cpp
78
int depth = cvtest::
randInt
(rng) % 3, cn = cvtest::
randInt
(rng) % 4 + 1;
83
thresh_type = cvtest::
randInt
(rng) % 5;
89
if( cvtest::
randInt
(rng)%4 == 0 )
98
if( cvtest::
randInt
(rng)%4 == 0 )
test_histograms.cpp
144
cdims = cvtest::
randInt
(rng) % max_cdims + 1;
148
uniform = cvtest::
randInt
(rng) % 2;
149
hist_type = cvtest::
randInt
(rng) % 2 ? CV_HIST_SPARSE : CV_HIST_ARRAY;
153
dims[i] = cvtest::
randInt
(rng) % (max_dim_size + 2) + 2;
159
img_type = cvtest::
randInt
(rng) % 2 ? CV_32F : CV_8U;
174
range_delta = (cvtest::
randInt
(rng) % 2)*(high-low)*0.05;
263
nz_count = cvtest::
randInt
(rng) % MAX( totalSize/4, 100 );
270
idx[j] = cvtest::
randInt
(rng) % dims[j];
295
test_cpp = (cvtest::
randInt
(ts->get_rng()) % 2) != 0;
377
iters = (cvtest::
randInt
(rng) % MAX(total_size/10,100)) + 1
[
all
...]
test_templmatch.cpp
108
int depth = cvtest::
randInt
(rng) % 2, cn = cvtest::
randInt
(rng) & 1 ? 3 : 1;
115
sizes[INPUT][1].width = cvtest::
randInt
(rng)%MIN(sizes[INPUT][1].width,max_template_size) + 1;
116
sizes[INPUT][1].height = cvtest::
randInt
(rng)%MIN(sizes[INPUT][1].height,max_template_size) + 1;
121
method = cvtest::
randInt
(rng)%6;
122
test_cpp = (cvtest::
randInt
(rng) & 256) == 0;
test_filter.cpp
132
int depth = cvtest::
randInt
(rng) % CV_32F;
133
int cn = cvtest::
randInt
(rng) % 3 + 1;
140
aperture_size.width = cvtest::
randInt
(rng) % max_aperture_size + 1;
141
aperture_size.height = cvtest::
randInt
(rng) % max_aperture_size + 1;
142
anchor.x = cvtest::
randInt
(rng) % aperture_size.width;
143
anchor.y = cvtest::
randInt
(rng) % aperture_size.height;
148
inplace = cvtest::
randInt
(rng) % 2 != 0;
198
int depth = cvtest::
randInt
(rng) % 4;
203
shape = cvtest::
randInt
(rng) % 4;
208
optype = cvtest::
randInt
(rng) % (optype_max - optype_min + 1) + optype_min
[
all
...]
test_canny.cpp
91
aperture_size = cvtest::
randInt
(rng) % 2 ? 5 : 3;
97
if( cvtest::
randInt
(rng) % 2 )
100
use_true_gradient = cvtest::
randInt
(rng) % 2 != 0;
101
test_cpp = (cvtest::
randInt
(rng) & 256) == 0;
test_imgwarp.cpp
102
int depth = cvtest::
randInt
(rng) % 3;
103
int cn = cvtest::
randInt
(rng) % 3 + 1;
110
types[INPUT][1] = cvtest::
randInt
(rng) & 1 ? CV_32FC1 : CV_64FC1;
112
interpolation = cvtest::
randInt
(rng) % max_interpolation;
228
sz.width = (cvtest::
randInt
(rng) % sizes[INPUT][0].width) + 1;
229
sz.height = (cvtest::
randInt
(rng) % sizes[INPUT][0].height) + 1;
231
if( cvtest::
randInt
(rng) & 1 )
233
int xfactor = cvtest::
randInt
(rng) % 10 + 1;
234
int yfactor = cvtest::
randInt
(rng) % 10 + 1;
236
if( cvtest::
randInt
(rng) & 1
[
all
...]
test_moments.cpp
113
int cn = (cvtest::
randInt
(rng) % 4) + 1;
114
int depth = cvtest::
randInt
(rng) % 4;
117
is_binary = cvtest::
randInt
(rng) % 2 != 0;
119
try_umat = cvtest::
randInt
(rng) % 5 != 0;
121
try_umat = cvtest::
randInt
(rng) % 2 != 0;
144
coi = cvtest::
randInt
(rng) % cn;
test_convhull.cpp
346
use_storage = cvtest::
randInt
(rng) % 2;
347
point_type = CV_MAKETYPE(cvtest::
randInt
(rng) %
352
storage = cvCreateMemStorage( (cvtest::
randInt
(rng)%10 + 1)*1024 );
360
if( cvtest::
randInt
(rng) % 2 )
382
test_cpp = (cvtest::
randInt
(rng) & 16) == 0;
473
orientation = cvtest::
randInt
(rng) % 2 ? CV_CLOCKWISE : CV_COUNTER_CLOCKWISE;
474
return_points = cvtest::
randInt
(rng) % 2;
476
use_storage_for_hull = (cvtest::
randInt
(rng) % 2) && !test_cpp;
480
storage = cvCreateMemStorage( (cvtest::
randInt
(rng)%10 + 1)*1024 );
489
if( cvtest::
randInt
(rng) % 2
[
all
...]
/external/opencv3/modules/flann/test/
test_lshtable_badarg.cpp
82
caller.key_size += cvtest::
randInt
(rng) % 100;
/external/opencv3/modules/ts/src/
ts_arrtest.cpp
159
unsigned t =
randInt
(rng);
169
whole_size.width +=
randInt
(rng) % 10;
170
whole_size.height +=
randInt
(rng) % 10;
182
roi.x =
randInt
(rng) % (whole_size.width - size.width);
185
roi.y =
randInt
(rng) % (whole_size.height - size.height);
/external/opencv3/modules/video/test/
test_accum.cpp
75
int depth = cvtest::
randInt
(rng) % 3, cn = cvtest::
randInt
(rng) & 1 ? 3 : 1;
76
int accdepth = std::max((int)(cvtest::
randInt
(rng) % 2 + 1), depth);
Completed in 388 milliseconds
1
2