/external/opencv3/samples/python2/ |
D | find_obj.py | 73 vis = np.zeros((max(h1, h2), w1+w2), np.uint8) 74 vis[:h1, :w1] = img1 75 vis[:h2, w1:w1+w2] = img2 76 vis = cv2.cvtColor(vis, cv2.COLOR_GRAY2BGR) 81 cv2.polylines(vis, [corners], True, (255, 255, 255)) 95 cv2.circle(vis, (x1, y1), 2, col, -1) 96 cv2.circle(vis, (x2, y2), 2, col, -1) 101 cv2.line(vis, (x1-r, y1-r), (x1+r, y1+r), col, thickness) 102 cv2.line(vis, (x1-r, y1+r), (x1+r, y1-r), col, thickness) 103 cv2.line(vis, (x2-r, y2-r), (x2+r, y2+r), col, thickness) [all …]
|
D | feature_homography.py | 59 vis = np.zeros((h, w*2, 3), np.uint8) 60 vis[:h,:w] = self.frame 63 vis[:,w:] = target.image 64 draw_keypoints(vis[:,w:], target.keypoints) 66 cv2.rectangle(vis, (x0+w, y0), (x1+w, y1), (0, 255, 0), 2) 72 cv2.polylines(vis, [np.int32(tracked.quad)], True, (255, 255, 255), 2) 74 cv2.line(vis, (x0+w, y0), (x1, y1), (0, 255, 0)) 75 draw_keypoints(vis, self.tracker.frame_points) 77 self.rect_sel.draw(vis) 78 cv2.imshow('plane', vis)
|
D | lk_homography.py | 57 vis = frame.copy() 71 vis = cv2.addWeighted(vis, 0.5, overlay, 0.5, 0.0) 75 cv2.line(vis, (x0, y0), (x1, y1), (0, 128, 0)) 76 cv2.circle(vis, (x1, y1), 2, (red, green)[good], -1) 77 draw_str(vis, (20, 20), 'track count: %d' % len(self.p1)) 79 draw_str(vis, (20, 40), 'RANSAC') 84 cv2.circle(vis, (x, y), 2, green, -1) 85 draw_str(vis, (20, 20), 'feature count: %d' % len(p)) 87 cv2.imshow('lk_homography', vis)
|
D | plane_ar.py | 63 vis = self.frame.copy() 67 cv2.polylines(vis, [np.int32(tr.quad)], True, (255, 255, 255), 2) 69 cv2.circle(vis, (x, y), 2, (255, 255, 255)) 70 self.draw_overlay(vis, tr) 72 self.rect_sel.draw(vis) 73 cv2.imshow('plane', vis) 82 def draw_overlay(self, vis, tracked): argument 86 h, w = vis.shape[:2] 96 cv2.line(vis, (int(x0), int(y0)), (int(x1), int(y1)), (255, 255, 0), 2)
|
D | texture_flow.py | 35 vis = img.copy() variable 36 vis[:] = (192 + np.uint32(vis)) / 2 41 cv2.line(vis, (x-vx, y-vy), (x+vx, y+vy), (0, 0, 0), 1, cv2.LINE_AA) 43 cv2.imshow('flow', vis)
|
D | mosse.py | 105 vis = np.hstack([self.last_img, kernel, resp]) 106 return vis 108 def draw_state(self, vis): argument 111 cv2.rectangle(vis, (x1, y1), (x2, y2), (0, 0, 255)) 113 cv2.circle(vis, (int(x), int(y)), 2, (0, 0, 255), -1) 115 cv2.line(vis, (x1, y1), (x2, y2), (0, 0, 255)) 116 cv2.line(vis, (x2, y1), (x1, y2), (0, 0, 255)) 117 draw_str(vis, (x1, y2+16), 'PSR: %.2f' % self.psr) 163 vis = self.frame.copy() 165 tracker.draw_state(vis) [all …]
|
D | edge.py | 44 vis = img.copy() variable 45 vis /= 2 46 vis[edge != 0] = (0, 255, 0) 47 cv2.imshow('edge', vis)
|
D | facedetect.py | 50 vis = img.copy() variable 51 draw_rects(vis, rects, (0, 255, 0)) 55 vis_roi = vis[y1:y2, x1:x2] 60 draw_str(vis, (20, 20), 'time: %.1f ms' % (dt*1000)) 61 cv2.imshow('facedetect', vis)
|
D | distrans.py | 44 vis = cm[np.uint8(labels)] 46 vis = cm[np.uint8(dist*2)] 47 vis[mark != 0] = 255 48 cv2.imshow('distrans', vis)
|
D | camshift.py | 76 vis = self.frame.copy() 90 vis_roi = vis[y0:y1, x0:x1] 92 vis[mask == 0] = 0 102 vis[:] = prob[...,np.newaxis] 104 cv2.ellipse(vis, track_box, (0, 0, 255), 2) 108 cv2.imshow('camshift', vis)
|
D | lk_track.py | 48 vis = frame.copy() 65 cv2.circle(vis, (x, y), 2, (0, 255, 0), -1) 67 cv2.polylines(vis, [np.int32(tr) for tr in self.tracks], False, (0, 255, 0)) 68 draw_str(vis, (20, 20), 'track count: %d' % len(self.tracks)) 83 cv2.imshow('lk_track', vis)
|
D | mser.py | 33 vis = img.copy() variable 37 cv2.polylines(vis, hulls, 1, (0, 255, 0)) 39 cv2.imshow('img', vis)
|
D | digits.py | 115 vis = [] 120 vis.append(img) 121 return mosaic(25, vis) 173 vis = evaluate_model(model, digits_test, samples_test, labels_test) variable 174 cv2.imshow('KNearest test', vis) 179 vis = evaluate_model(model, digits_test, samples_test, labels_test) variable 180 cv2.imshow('SVM test', vis)
|
D | opt_flow.py | 22 vis = cv2.cvtColor(img, cv2.COLOR_GRAY2BGR) 23 cv2.polylines(vis, lines, 0, (0, 255, 0)) 25 cv2.circle(vis, (x1, y1), 1, (0, 255, 0), -1) 26 return vis
|
D | calibrate.py | 56 vis = cv2.cvtColor(img, cv2.COLOR_GRAY2BGR) variable 57 cv2.drawChessboardCorners(vis, pattern_size, corners, found) 59 cv2.imwrite('%s/%s_chess.bmp' % (debug_dir, name), vis)
|
D | plane_tracker.py | 153 vis = self.frame.copy() 157 cv2.polylines(vis, [np.int32(tr.quad)], True, (255, 255, 255), 2) 159 cv2.circle(vis, (x, y), 2, (255, 255, 255)) 161 self.rect_sel.draw(vis) 162 cv2.imshow('plane', vis)
|
D | turing.py | 61 vis = a.copy() variable 62 draw_str(vis, (20, 20), 'frame %d' % frame_i) 63 cv2.imshow('a', vis)
|
D | contours.py | 53 vis = np.zeros((h, w, 3), np.uint8) 55 cv2.drawContours( vis, contours, (-1, 3)[levels <= 0], (128,255,255), 57 cv2.imshow('contours', vis)
|
D | color_histogram.py | 49 vis = hsv_map*h[:,:,np.newaxis] / 255.0 variable 50 cv2.imshow('hist', vis)
|
/external/mesa3d/src/gallium/state_trackers/glx/xlib/ |
D | xm_api.c | 439 XMesaVisual vis, Colormap cmap) in create_xmesa_buffer() argument 441 XMesaDisplay xmdpy = xmesa_init_display(vis->display); in create_xmesa_buffer() 455 b->ws.visual = vis->visinfo->visual; in create_xmesa_buffer() 456 b->ws.depth = vis->visinfo->depth; in create_xmesa_buffer() 458 b->xm_visual = vis; in create_xmesa_buffer() 462 get_drawable_size(vis->display, d, &width, &height); in create_xmesa_buffer() 761 struct gl_config *vis = &v->mesa_visual; in XMesaCreateVisual() local 763 vis->rgbMode = GL_TRUE; in XMesaCreateVisual() 764 vis->doubleBufferMode = db_flag; in XMesaCreateVisual() 765 vis->stereoMode = stereo_flag; in XMesaCreateVisual() [all …]
|
D | glx_api.c | 379 XVisualInfo temp, *vis; in get_visual() local 399 vis = XGetVisualInfo( dpy, mask, &temp, &n ); in get_visual() 405 if (vis && depth > 24 && (xclass==TrueColor || xclass==DirectColor)) { in get_visual() 406 if (_mesa_bitcount((GLuint) vis->red_mask ) <= 8 && in get_visual() 407 _mesa_bitcount((GLuint) vis->green_mask) <= 8 && in get_visual() 408 _mesa_bitcount((GLuint) vis->blue_mask ) <= 8) { in get_visual() 409 return vis; in get_visual() 412 XFree((void *) vis); in get_visual() 417 return vis; in get_visual() 434 XVisualInfo *vis; in get_env_visual() local [all …]
|
/external/mesa3d/src/mesa/main/ |
D | context.c | 224 struct gl_config *vis = CALLOC_STRUCT(gl_config); in _mesa_create_visual() local 225 if (vis) { in _mesa_create_visual() 226 if (!_mesa_initialize_visual(vis, dbFlag, stereoFlag, in _mesa_create_visual() 232 free(vis); in _mesa_create_visual() 236 return vis; in _mesa_create_visual() 251 _mesa_initialize_visual( struct gl_config *vis, in _mesa_initialize_visual() argument 266 assert(vis); in _mesa_initialize_visual() 279 vis->rgbMode = GL_TRUE; in _mesa_initialize_visual() 280 vis->doubleBufferMode = dbFlag; in _mesa_initialize_visual() 281 vis->stereoMode = stereoFlag; in _mesa_initialize_visual() [all …]
|
/external/opencv3/modules/python/test/ |
D | tickets.py | 34 vis = cv.CreateImage((1000,1000), 8, 3) 45 cv.Zero(vis) 48 cv.FillConvexPoly(vis, [xform(p) for p in d[:3]], cv.RGB(255,0,0)) 52 cv.Line(vis, xform(a), xform(b), cv.RGB(0,128,0), 3) 56 cv.Line(vis, xform(a), xform(b), (255,255,255)) 58 self.snap(vis)
|
/external/mesa3d/src/mesa/drivers/x11/ |
D | fakeglx.c | 524 XVisualInfo temp, *vis; in get_visual() local 544 vis = XGetVisualInfo( dpy, mask, &temp, &n ); in get_visual() 550 if (vis && depth > 24 && (xclass==TrueColor || xclass==DirectColor)) { in get_visual() 551 if (_mesa_bitcount((GLuint) vis->red_mask ) <= 8 && in get_visual() 552 _mesa_bitcount((GLuint) vis->green_mask) <= 8 && in get_visual() 553 _mesa_bitcount((GLuint) vis->blue_mask ) <= 8) { in get_visual() 554 return vis; in get_visual() 557 XFree((void *) vis); in get_visual() 562 return vis; in get_visual() 580 XVisualInfo *vis; in get_env_visual() local [all …]
|
/external/mesa3d/src/glx/ |
D | glxcmds.c | 355 glXCreateContext(Display * dpy, XVisualInfo * vis, in glXCreateContext() argument 362 struct glx_screen *const psc = GetGLXScreenConfigs(dpy, vis->screen); in glXCreateContext() 364 config = glx_config_find_visual(psc->visuals, vis->visualid); in glXCreateContext() 369 error.resourceID = vis->visualid; in glXCreateContext() 381 return CreateContext(dpy, vis->visualid, config, shareList, allowDirect, in glXCreateContext() 382 X_GLXCreateContext, renderType, vis->screen); in glXCreateContext() 648 glXCreateGLXPixmap(Display * dpy, XVisualInfo * vis, Pixmap pixmap) in glXCreateGLXPixmap() argument 651 int screen = vis->screen; in glXCreateGLXPixmap() 655 config = glx_config_find_visual(psc->visuals, vis->visualid); in glXCreateGLXPixmap() 657 if(apple_glx_pixmap_create(dpy, vis->screen, pixmap, config)) in glXCreateGLXPixmap() [all …]
|