Home
last modified time | relevance | path

Searched refs:vis (Results 1 – 25 of 60) sorted by relevance

123

/external/opencv3/samples/python2/
Dfind_obj.py73 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 …]
Dfeature_homography.py59 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)
Dlk_homography.py57 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)
Dplane_ar.py63 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)
Dtexture_flow.py35 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)
Dmosse.py105 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 …]
Dedge.py44 vis = img.copy() variable
45 vis /= 2
46 vis[edge != 0] = (0, 255, 0)
47 cv2.imshow('edge', vis)
Dfacedetect.py50 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)
Ddistrans.py44 vis = cm[np.uint8(labels)]
46 vis = cm[np.uint8(dist*2)]
47 vis[mark != 0] = 255
48 cv2.imshow('distrans', vis)
Dcamshift.py76 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)
Dlk_track.py48 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)
Dmser.py33 vis = img.copy() variable
37 cv2.polylines(vis, hulls, 1, (0, 255, 0))
39 cv2.imshow('img', vis)
Ddigits.py115 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)
Dopt_flow.py22 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
Dcalibrate.py56 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)
Dplane_tracker.py153 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)
Dturing.py61 vis = a.copy() variable
62 draw_str(vis, (20, 20), 'frame %d' % frame_i)
63 cv2.imshow('a', vis)
Dcontours.py53 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)
Dcolor_histogram.py49 vis = hsv_map*h[:,:,np.newaxis] / 255.0 variable
50 cv2.imshow('hist', vis)
/external/mesa3d/src/gallium/state_trackers/glx/xlib/
Dxm_api.c439 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 …]
Dglx_api.c379 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/
Dcontext.c224 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/
Dtickets.py34 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/
Dfakeglx.c524 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/
Dglxcmds.c355 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 …]

123