HomeSort by relevance Sort by last modified time
    Searched defs:img (Results 1 - 25 of 546) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/opencv3/samples/python2/
contours.py 16 img = np.zeros((500, 500), np.uint8)
28 cv2.line(img, (x1, y1), (x2, y2), white)
30 cv2.ellipse( img, (dx+150, dy+100), (100,70), 0, 0, 360, white, -1 )
31 cv2.ellipse( img, (dx+115, dy+70), (30,20), 0, 0, 360, black, -1 )
32 cv2.ellipse( img, (dx+185, dy+70), (30,20), 0, 0, 360, black, -1 )
33 cv2.ellipse( img, (dx+115, dy+70), (15,15), 0, 0, 360, white, -1 )
34 cv2.ellipse( img, (dx+185, dy+70), (15,15), 0, 0, 360, white, -1 )
35 cv2.ellipse( img, (dx+115, dy+70), (5,5), 0, 0, 360, black, -1 )
36 cv2.ellipse( img, (dx+185, dy+70), (5,5), 0, 0, 360, black, -1 )
37 cv2.ellipse( img, (dx+150, dy+100), (10,5), 0, 0, 360, black, -1
46 img = make_image() variable
    [all...]
logpolar.py 11 img = cv2.imread(fn) variable
12 if img is None:
16 img2 = cv2.logPolar(img, (img.shape[0]/2, img.shape[1]/2), 40, cv2.WARP_FILL_OUTLIERS)
17 img3 = cv2.linearPolar(img, (img.shape[0]/2, img.shape[1]/2), 40, cv2.WARP_FILL_OUTLIERS)
19 cv2.imshow('before', img)
houghcircles.py 21 img = cv2.cvtColor(src, cv2.COLOR_BGR2GRAY) variable
22 img = cv2.medianBlur(img, 5) variable
25 circles = cv2.HoughCircles(img, cv2.HOUGH_GRADIENT, 1, 10, np.array([]), 100, 30, 1, 30)
squares.py 17 def find_squares(img):
18 img = cv2.GaussianBlur(img, (5, 5), 0)
20 for gray in cv2.split(img):
41 img = cv2.imread(fn) variable
42 squares = find_squares(img)
43 cv2.drawContours( img, squares, -1, (0, 255, 0), 3 )
44 cv2.imshow('squares', img)
browse.py 29 img = cv2.imread(fn) variable
30 if img is None:
37 img = np.zeros((sz, sz), np.uint8) variable
40 cv2.polylines(img, [track], 0, 255, 1, cv2.LINE_AA)
43 small = img
48 h, w = img.shape[:2]
51 zoom = cv2.getRectSubPix(img, (800, 600), (x+0.5, y+0.5))
gabor_threads.py 31 def process(img, filters):
32 accum = np.zeros_like(img)
34 fimg = cv2.filter2D(img, cv2.CV_8UC3, kern)
38 def process_threaded(img, filters, threadn = 8):
39 accum = np.zeros_like(img)
41 return cv2.filter2D(img, cv2.CV_8UC3, kern)
57 img = cv2.imread(img_fn) variable
58 if img is None:
65 res1 = process(img, filters)
67 res2 = process_threaded(img, filters
    [all...]
inpaint.py 31 img = cv2.imread(fn) variable
32 if img is None:
36 img_mark = img.copy()
37 mark = np.zeros(img.shape[:2], np.uint8)
38 sketch = Sketcher('img', [img_mark, mark], lambda : ((255, 255, 255), 255))
48 img_mark[:] = img
kmeans.py 37 img = np.zeros((img_size, img_size, 3), np.uint8) variable
40 cv2.circle(img, (x, y), 1, c, -1)
42 cv2.imshow('gaussian mixture', img)
deconvolution.py 40 def blur_edge(img, d=31):
41 h, w = img.shape[:2]
42 img_pad = cv2.copyMakeBorder(img, d, d, d, d, cv2.BORDER_WRAP)
47 return img*w + img_blur*(1-w)
77 img = cv2.imread(fn, 0) variable
78 if img is None:
82 img = np.float32(img)/255.0 variable
83 cv2.imshow('input', img)
85 img = blur_edge(img variable
    [all...]
distrans.py 28 img = cv2.imread(fn, 0) variable
29 if img is None:
41 mark = cv2.Canny(img, thrs, 3*thrs)
floodfill.py 28 img = cv2.imread(fn, True) variable
29 if img is None:
33 h, w = img.shape[:2]
41 cv2.imshow('floodfill', img)
43 flooded = img.copy()
  /external/clang/test/CodeGen/
2009-08-14-vararray-crash.c 5 typedef imgrow img[rb]; typedef
7 const img *br;
  /external/opencv3/samples/cpp/
npr_demo.cpp 66 Mat img; local
75 edgePreservingFilter(I,img,type);
76 imshow("Edge Preserve Smoothing",img);
81 detailEnhance(I,img);
82 imshow("Detail Enhanced",img);
87 pencilSketch(I,img1, img, 10 , 0.1f, 0.03f);
89 imshow("Color Pencil Sketch",img);
93 stylization(I,img);
94 imshow("Stylization",img);
houghcircles.cpp 21 Mat img = imread(filename, 0); local
22 if(img.empty())
30 medianBlur(img, img, 5);
31 cvtColor(img, cimg, COLOR_GRAY2BGR);
34 HoughCircles(img, circles, HOUGH_GRADIENT, 1, 10,
inpaint.cpp 26 Mat img, inpaintMask; variable
41 line( img, prevPt, pt, Scalar::all(255), 5, 8, 0 );
43 imshow("image", img);
62 img = img0.clone();
63 inpaintMask = Mat::zeros(img.size(), CV_8U);
65 imshow("image", img);
78 img0.copyTo(img);
79 imshow("image", img);
85 inpaint(img, inpaintMask, inpainted, 3, INPAINT_TELEA);
stitching.cpp 127 Mat img = imread(argv[i]); local
128 if (img.empty())
133 imgs.push_back(img);
  /external/opencv3/samples/cpp/tutorial_code/photo/non_photorealistic_rendering/
npr_demo.cpp 65 Mat img; local
74 edgePreservingFilter(I,img,type);
75 imshow("Edge Preserve Smoothing",img);
80 detailEnhance(I,img);
81 imshow("Detail Enhanced",img);
86 pencilSketch(I,img1, img, 10 , 0.1f, 0.03f);
88 imshow("Color Pencil Sketch",img);
92 stylization(I,img);
93 imshow("Stylization",img);
  /frameworks/native/libs/gui/tests/
SurfaceTextureFBO_test.cpp 47 uint8_t* img = NULL; local
48 buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&img));
49 fillRGBA8BufferSolid(img, texWidth, texHeight, buf->getStride(), 0, 255,
72 (void**)(&img)));
73 fillRGBA8BufferSolid(img, texWidth, texHeight, buf->getStride(), 255, 0,
  /external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/
GroupFadeTest.java 43 Image img = new Image(new TextureRegion(texture)); local
44 img.setX((float)Math.random() * 480);
45 img.setY((float)Math.random() * 320);
46 img.getColor().a = (float)Math.random() * 0.5f + 0.5f;
47 stage.addActor(img);
  /external/libvpx/libvpx/vp8/encoder/
lookahead.h 21 YV12_BUFFER_CONFIG img; member in struct:lookahead_entry
  /external/opencv3/modules/cudaimgproc/perf/
perf_mean_shift.cpp 59 const cv::Mat img = readImage(GetParam()); local
60 ASSERT_FALSE(img.empty());
63 cv::cvtColor(img, rgba, cv::COLOR_BGR2BGRA);
81 TEST_CYCLE() cv::pyrMeanShiftFiltering(img, dst, sp, sr);
95 const cv::Mat img = readImage(GetParam()); local
96 ASSERT_FALSE(img.empty());
99 cv::cvtColor(img, rgba, cv::COLOR_BGR2BGRA);
129 const cv::Mat img = readImage(GetParam()); local
130 ASSERT_FALSE(img.empty());
133 cv::cvtColor(img, rgba, cv::COLOR_BGR2BGRA)
    [all...]
  /external/opencv3/modules/imgproc/perf/
perf_canny.cpp 27 Mat img = imread(filename, IMREAD_GRAYSCALE); local
28 if (img.empty())
30 Mat edges(img.size(), img.type());
32 declare.in(img).out(edges);
34 TEST_CYCLE() Canny(img, edges, thresh_low, thresh_high, aperture, useL2);
  /external/opencv3/modules/objdetect/perf/opencl/
perf_cascades.cpp 36 Mat img = imread(getDataPath(imagePath), IMREAD_GRAYSCALE); local
37 if (img.empty())
42 equalizeHist(img, img);
43 declare.in(img).time(60);
45 UMat uimg = img.getUMat(ACCESS_READ);
  /external/opencv3/modules/stitching/test/
test_matchers.cpp 53 Mat img = imread(string(cvtest::TS::ptr()->get_data_path()) + "cv/shared/lena.png"); local
56 rois.push_back(Rect(0, 0, img.cols / 2, img.rows / 2));
57 rois.push_back(Rect(img.cols / 2, img.rows / 2, img.cols - img.cols / 2, img.rows - img.rows / 2));
59 (*finder)(img, roi_features, rois)
    [all...]
  /external/opencv3/modules/video/perf/
perf_ecc.cpp 20 Mat img = imread(getDataPath("cv/shared/fruits_ecc.png"),0); local
34 warpAffine(img, templateImage, warpGround,
42 warpAffine(img, templateImage, warpGround,
48 warpAffine(img, templateImage, warpGround,
55 warpPerspective(img, templateImage, warpGround,
67 findTransformECC(templateImage, img, warpMat, transform_type,

Completed in 934 milliseconds

1 2 3 4 5 6 7 8 91011>>