/external/opencv3/samples/python2/ |
gaussian_mix.py | 7 def make_gaussians(cluster_n, img_size): 11 mean = (0.1 + 0.8*random.rand(2)) * img_size 12 a = (random.rand(2, 2)-0.5)*img_size*0.1 13 cov = np.dot(a.T, a) + img_size*0.05*np.eye(2) 31 img_size = 512 variable 37 points, ref_distrs = make_gaussians(cluster_n, img_size) 47 img = np.zeros((img_size, img_size, 3), np.uint8)
|
kmeans.py | 20 img_size = 512 variable 32 points, _ = make_gaussians(cluster_n, img_size) 37 img = np.zeros((img_size, img_size, 3), np.uint8)
|
/external/opencv3/modules/calib3d/test/ |
test_undistort_badarg.cpp | 55 cv::Size img_size; member in class:CV_UndistortPointsBadArgTest 103 img_size.width = 800; 104 img_size.height = 600; 105 double cam[9] = {150.f, 0.f, img_size.width/2.f, 0, 300.f, img_size.height/2.f, 0.f, 0.f, 1.f}; 108 static_cast<double>(img_size.width) / 4.0, 109 static_cast<double>(img_size.height) / 4.0, 112 double p[9] = {155.f, 0.f, img_size.width/2.f+img_size.width/50.f, 0, 310.f, img_size.height/2.f+img_size.height/50.f, 0.f, 0.f, 1.f} 294 cv::Size img_size; member in class:CV_InitUndistortRectifyMapBadArgTest 419 cv::Size img_size; member in class:CV_UndistortBadArgTest [all...] |
test_undistort.cpp | 60 cv::Size img_size; member in class:CV_DefaultNewCameraMatrixTest 100 img_size.width = cvtest::randInt(rng) % MAX_X + 1; 101 img_size.height = cvtest::randInt(rng) % MAX_Y + 1; 106 double sz = MAX(img_size.width, img_size.height); 110 a[2] = (img_size.width - 1)*0.5 + cvtest::randReal(rng)*10 - 5; 111 a[5] = (img_size.height - 1)*0.5 + cvtest::randReal(rng)*10 - 5; 125 new_camera_mat = cv::getDefaultNewCameraMatrix(camera_mat,img_size,center_principal_point); 153 a[2] = (img_size.width - 1)*0.5; 154 a[5] = (img_size.height - 1)*0.5 185 cv::Size img_size; member in class:CV_UndistortPointsTest 592 cv::Size img_size; member in class:CV_InitUndistortRectifyMapTest [all...] |
test_fundam.cpp | 775 int img_size; member in class:CV_FundamentalMatTest 809 img_size = 10; 943 t[2] = (img_size*0.5 + cvtest::randReal(rng)*4. - 2.)*t[0]; 944 t[5] = (img_size*0.5 + cvtest::randReal(rng)*4. - 2.)*t[4]; 1073 int img_size; [all...] |
/external/opencv3/modules/imgproc/test/ |
test_lsd.cpp | 8 const Size img_size(640, 480); 56 image = Mat(img_size, CV_8UC1); 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); 73 Point p2(y, img_size.height - 10); 80 image = Mat::zeros(img_size, CV_8UC1); 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)) [all...] |
test_histograms.cpp | 81 CvSize img_size; member in class:CV_BaseHistTest 160 img_size.width = cvRound( exp(cvtest::randReal(rng) * img_max_log_size * CV_LOG2) ); 161 img_size.height = cvRound( exp(cvtest::randReal(rng) * img_max_log_size * CV_LOG2) ); 1184 images[i] = cvCreateImage( img_size, 1194 images[i] = cvCreateImage( img_size, IPL_DEPTH_8U, 1 ); [all...] |
test_contours.cpp | 68 CvSize img_size; member in class:CV_FindContourTest 218 img_size.width = cvRound(exp((cvtest::randReal(rng)* 220 img_size.height = cvRound(exp((cvtest::randReal(rng)* 229 img[i] = cvCreateImage( img_size, 8, 1 );
|
test_convhull.cpp | 1715 CvSize img_size; member in class:CV_ContourMomentsTest [all...] |
/external/opencv/cvaux/src/ |
cvlines.cpp | 314 // img_size - width and height of the image in pixels 320 icvDeleteMoire8u( uchar * img, int img_step, CvSize img_size, int cn ) 325 if( !img || img_size.width <= 0 || img_size.height <= 0 || img_step < img_size.width * 3 ) 328 img_size.width *= cn; 330 for( y = 1; y < img_size.height; y++, src = dst, dst += img_step ) 335 for( x = 0; x < img_size.width; x++ ) 342 for( x = 0; x < img_size.width; x += 3 ) 375 CvSize img_size; local 413 CvSize img_size; local 457 CvSize img_size; local [all...] |
/device/google/dragon/recovery/updater/ |
update_fw.cpp | 33 size_t img_size = 0, spi_size = 0; local 34 uint8_t *img_rootkey = gbb_get_rootkey(img, &img_size); 37 if (!img_rootkey || !spi_rootkey || img_size != spi_size) { 38 ALOGD("Invalid root key SPI %zd IMG %zd\n", spi_size, img_size); 42 if (memcmp(img_rootkey, spi_rootkey, img_size)) {
|
/external/opencv3/modules/video/test/ |
test_camshift.cpp | 65 CvSize img_size; member in class:CV_TrackBaseTest 126 img = cvCreateMat( img_size.height, img_size.width, img_type ); 130 for( y = 0; y < img_size.height; y++ ) 136 for( x = 0; x < img_size.width; x++ ) 172 img_size.width = cvRound(cvtest::randReal(rng)*m*0.5 + m + 1); 173 img_size.height = cvRound(cvtest::randReal(rng)*m*0.5 + m + 1); 177 box0.center.x = (float)(img_size.width*0.5 + (cvtest::randReal(rng)-0.5)*(img_size.width - m)); 178 box0.center.y = (float)(img_size.height*0.5 + (cvtest::randReal(rng)-0.5)*(img_size.height - m)) [all...] |
/external/opencv3/samples/cpp/ |
stereo_match.cpp | 183 Size img_size = img1.size(); 218 stereoRectify( M1, D1, M2, D2, img_size, R, T, R1, R2, P1, P2, Q, CALIB_ZERO_DISPARITY, -1, img_size, &roi1, &roi2 ); 221 initUndistortRectifyMap(M1, D1, R1, P1, img_size, CV_16SC2, map11, map12); 222 initUndistortRectifyMap(M2, D2, R2, P2, img_size, CV_16SC2, map21, map22); 232 numberOfDisparities = numberOfDisparities > 0 ? numberOfDisparities : ((img_size.width/8) + 15) & -16;
|
/external/opencv3/modules/stitching/src/ |
seam_finders.cpp | [all...] |
matchers.cpp | 278 features.img_size = image.size(); 295 features.img_size = image.size(); 594 p.x -= features1.img_size.width * 0.5f; 595 p.y -= features1.img_size.height * 0.5f; 599 p.x -= features2.img_size.width * 0.5f; 600 p.y -= features2.img_size.height * 0.5f; 639 p.x -= features1.img_size.width * 0.5f; 640 p.y -= features1.img_size.height * 0.5f; 644 p.x -= features2.img_size.width * 0.5f; 645 p.y -= features2.img_size.height * 0.5f [all...] |
autocalib.cpp | 138 focals_sum += features[i].img_size.width + features[i].img_size.height;
|
motion_estimators.cpp | 151 cameras[i].ppx -= 0.5 * features[i].img_size.width; 152 cameras[i].ppy -= 0.5 * features[i].img_size.height; 165 cameras[i].ppx += 0.5 * features[i].img_size.width; 166 cameras[i].ppy += 0.5 * features[i].img_size.height; 537 K1(0,0) = f1; K1(0,2) = features1.img_size.width * 0.5; 538 K1(1,1) = f1; K1(1,2) = features1.img_size.height * 0.5; 541 K2(0,0) = f2; K2(0,2) = features2.img_size.width * 0.5; 542 K2(1,1) = f2; K2(1,2) = features2.img_size.height * 0.5;
|
/external/opencv/cv/src/ |
cvcontours.cpp | 158 CvSize img_size; /* ROI size */ member in struct:_CvContourScanner 236 scanner->img_size.width = size.width - 1; /* exclude rightest column */ 237 scanner->img_size.height = size.height - 1; /* exclude bottomost row */ 863 width = scanner->img_size.width; 864 height = scanner->img_size.height; 1154 CvSize img_size; local [all...] |
/external/opencv3/modules/imgproc/src/ |
contours.cpp | 144 CvSize img_size; /* ROI size */ member in struct:_CvContourScanner 217 scanner->img_size.width = size.width - 1; /* exclude rightest column */ 218 scanner->img_size.height = size.height - 1; /* exclude bottomost row */ 1003 int width = scanner->img_size.width; 1004 int height = scanner->img_size.height; 1308 CvSize img_size; local [all...] |
/external/opencv/ml/src/ |
mlcnn.cpp | 129 if( img_size != first_layer->input_height*first_layer->input_width ) \ 175 int img_size; 185 &n_images, &img_size, &img_size, &responses, 230 const int img_size = img_width*img_height; 232 CvMat image = cvMat( 1, img_size, CV_32FC1 ); 329 int img_height, img_width, img_size; 343 img_size = img_height*img_width; 345 cvPreparePredictData( _image, img_size, 0, nclasses, probs, &img_data ); 350 CV_CALL(X[0] = cvCreateMat( img_size,1,CV_32FC1 )) [all...] |
/external/autotest/client/tests/kvm/tests/ |
qemu_img.py | 74 def _create(cmd, img_name, fmt, img_size=None, base_img=None, 82 @param img_size: image size 96 if img_size: 97 cmd += " %s" % img_size 111 img_size=params.get("image_size_large"))
|
/cts/apps/CameraITS/tests/scene5/ |
test_lens_shading_and_color_uniformity.py | 65 img_size = its.objects.get_available_output_sizes("yuv", props) 66 w = img_size[0][0] 67 h = img_size[0][1]
|
/external/valgrind/coregrind/m_debuginfo/ |
readmacho.c | 175 if (ML_(img_size)(sli.img) < sizeof(struct fat_header)) { 187 if (ML_(img_size)(sli.img) < sizeof(struct fat_header) 219 if (ML_(img_size)(sli.img) < arch.offset + arch.size) { 239 vg_assert(ML_(img_size)(sli.img) >= sizeof(struct fat_header)); 246 if (sli.szB > ML_(img_size)(sli.img)) { 251 if (sli.ioff >= 0 && sli.ioff + sli.szB <= ML_(img_size)(sli.img)) { 275 vg_assert(ML_(img_size)(sli.img) > 0); 279 vg_assert(sli.ioff + sli.szB <= ML_(img_size)(sli.img)); [all...] |
/external/autotest/server/cros/servo/ |
firmware_programmer.py | 167 img_size = self._servo.system_output( 171 self._fw_main, img_size),
|
/external/mesa3d/src/gallium/drivers/svga/ |
svga_screen_cache.c | 66 unsigned img_size = ((w + bw - 1) / bw) * ((h + bh - 1) / bh) * d * bpb; local 67 total_size += img_size;
|