Home
last modified time | relevance | path

Searched refs:image (Results 1 – 25 of 129) sorted by relevance

123456

/cts/apps/CameraITS/tests/
Dtutorial.py25 import its.image
78 rgbimg = its.image.convert_capture_to_rgb_image(cap)
79 its.image.write_image(rgbimg, "%s_rgb_1.jpg" % (NAME))
83 yimg,uimg,vimg = its.image.convert_capture_to_planes(cap)
84 its.image.write_image(yimg, "%s_y_plane_1.jpg" % (NAME))
85 its.image.write_image(uimg, "%s_u_plane_1.jpg" % (NAME))
86 its.image.write_image(vimg, "%s_v_plane_1.jpg" % (NAME))
121 rgbimg = its.image.convert_capture_to_rgb_image(cap)
122 its.image.write_image(rgbimg, "%s_rgb_2.jpg" % (NAME))
141 tile = its.image.get_image_patch(rgbimg, 0.45, 0.45, 0.1, 0.1)
[all …]
/cts/apps/CameraITS/tests/scene1/
Dtest_multi_camera_match.py19 import its.image
69 img_raw = its.image.convert_capture_to_rgb_image(cap_raw, props=props)
70 its.image.write_image(img_raw, '%s_raw.jpg' % NAME)
71 rgb_means_raw = its.image.compute_image_means(
72 its.image.get_image_patch(img_raw, PATCH_LOC, PATCH_LOC,
75 img_yuv1 = its.image.convert_capture_to_rgb_image(
77 its.image.write_image(img_yuv1, '%s_yuv1.jpg' % NAME)
78 y1, _, _ = its.image.convert_capture_to_planes(
80 y1_mean = its.image.compute_image_means(
81 its.image.get_image_patch(y1, PATCH_LOC, PATCH_LOC,
[all …]
Dtest_jpeg.py15 import its.image
42 img = its.image.convert_capture_to_rgb_image(cap)
43 its.image.write_image(img, "%s_fmt=yuv.jpg" % (NAME))
44 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
45 rgb0 = its.image.compute_image_means(tile)
51 img = its.image.decompress_jpeg_to_rgb_image(cap["data"])
52 its.image.write_image(img, "%s_fmt=jpg.jpg" % (NAME))
53 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
54 rgb1 = its.image.compute_image_means(tile)
Dtest_yuv_plus_jpeg.py15 import its.image
48 img = its.image.convert_capture_to_rgb_image(cap_yuv, True)
49 its.image.write_image(img, "%s_yuv.jpg" % (NAME))
50 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
51 rgb0 = its.image.compute_image_means(tile)
53 img = its.image.convert_capture_to_rgb_image(cap_jpeg, True)
54 its.image.write_image(img, "%s_jpeg.jpg" % (NAME))
55 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
56 rgb1 = its.image.compute_image_means(tile)
Dtest_yuv_plus_raw12.py15 import its.image
50 img = its.image.convert_capture_to_rgb_image(cap_yuv)
51 its.image.write_image(img, "%s_yuv.jpg" % (NAME), True)
52 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
53 rgb0 = its.image.compute_image_means(tile)
57 img = its.image.convert_capture_to_rgb_image(cap_raw, props=props)
58 its.image.write_image(img, "%s_raw.jpg" % (NAME), True)
59 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
60 rgb1 = its.image.compute_image_means(tile)
Dtest_yuv_plus_raw.py19 import its.image
52 img = its.image.convert_capture_to_rgb_image(cap_yuv)
53 its.image.write_image(img, "%s_shading=%d_yuv.jpg" % (NAME, mode), True)
54 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
55 rgb0 = its.image.compute_image_means(tile)
59 img = its.image.convert_capture_to_rgb_image(cap_raw, props=props)
60 its.image.write_image(img, "%s_shading=%d_raw.jpg" % (NAME, mode), True)
61 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
62 rgb1 = its.image.compute_image_means(tile)
Dtest_yuv_plus_raw10.py19 import its.image
53 img = its.image.convert_capture_to_rgb_image(cap_yuv)
54 its.image.write_image(img, "%s_shading=%d_yuv.jpg" % (NAME, mode), True)
55 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
56 rgb0 = its.image.compute_image_means(tile)
60 img = its.image.convert_capture_to_rgb_image(cap_raw, props=props)
61 its.image.write_image(img, "%s_shading=%d_raw.jpg" % (NAME, mode), True)
62 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
63 rgb1 = its.image.compute_image_means(tile)
Dtest_yuv_jpeg_all.py15 import its.image
49 img = its.image.convert_capture_to_rgb_image(cap)
50 its.image.write_image(img, "%s_yuv_w%d_h%d.jpg"%(
52 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
53 rgb = its.image.compute_image_means(tile)
62 img = its.image.decompress_jpeg_to_rgb_image(cap["data"])
63 its.image.write_image(img, "%s_jpg_w%d_h%d.jpg"%(
69 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
70 rgb = its.image.compute_image_means(tile)
Dtest_black_white.py15 import its.image
55 img = its.image.convert_capture_to_rgb_image(cap)
56 its.image.write_image(img, "%s_black.jpg" % (NAME))
57 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
58 black_means = its.image.compute_image_means(tile)
70 img = its.image.convert_capture_to_rgb_image(cap)
71 its.image.write_image(img, "%s_white.jpg" % (NAME))
72 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
73 white_means = its.image.compute_image_means(tile)
Dtest_param_tonemap_mode.py15 import its.image
73 img = its.image.convert_capture_to_rgb_image(cap)
74 its.image.write_image(
76 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
77 rgb_means.append(its.image.compute_image_means(tile))
97 img = its.image.convert_capture_to_rgb_image(cap)
98 its.image.write_image(
100 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
101 rgb_means.append(its.image.compute_image_means(tile))
Dtest_param_flash_mode.py18 import its.image
61 y, _, _ = its.image.convert_capture_to_planes(cap, props)
62 its.image.write_image(y, '%s_%d.jpg' % (NAME, f))
63 tile = its.image.get_image_patch(y, 0.375, 0.375, 0.25, 0.25)
64 its.image.write_image(tile, '%s_%d_tile.jpg' % (NAME, f))
65 means.append(its.image.compute_image_means(tile)[0])
66 grads.append(its.image.compute_image_max_gradients(tile)[0])
Dtest_raw_sensitivity.py18 import its.image
63 gr = its.image.convert_capture_to_planes(cap, props)[1]
64 tile = its.image.get_image_patch(gr, 0.445, 0.445, 0.11, 0.11)
65 var = its.image.compute_image_variances(tile)[0]
66 img = its.image.convert_capture_to_rgb_image(cap, props=props)
67 its.image.write_image(img, "%s_s=%05d_var=%f.jpg" %
80 _, var_image = its.image.unpack_rawstats_capture(cap)
81 cfa_idxs = its.image.get_canonical_cfa_order(props)
Dtest_tonemap_sequence.py15 import its.image
55 img = its.image.convert_capture_to_rgb_image(cap)
56 its.image.write_image(img, "%s_i=%d.jpg" % (NAME, i))
57 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
64 img = its.image.convert_capture_to_rgb_image(cap)
65 its.image.write_image(img, "%s_i=%d.jpg" % (NAME, i))
66 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
Dtest_raw_burst_sensitivity.py18 import its.image
83 gr = its.image.convert_capture_to_planes(cap, props)[1]
84 tile = its.image.get_image_patch(gr, 0.445, 0.445, 0.11, 0.11)
85 var = its.image.compute_image_variances(tile)[0]
86 img = its.image.convert_capture_to_rgb_image(cap, props=props)
87 its.image.write_image(img,
92 _, var_image = its.image.unpack_rawstats_capture(cap)
93 cfa_idxs = its.image.get_canonical_cfa_order(props)
Dtest_crop_regions.py15 import its.image
54 img_full = its.image.convert_capture_to_rgb_image(cap_full)
55 its.image.write_image(img_full, "%s_full.jpg" % (NAME))
81 img_crop = its.image.convert_capture_to_rgb_image(cap)
82 img_crop = its.image.downscale_image(img_crop, 2)
83 its.image.write_image(img_crop, "%s_crop%d.jpg" % (NAME, i))
87 tile_full = its.image.get_image_patch(img_full, x,y,w,h)
92 its.image.write_image(tile_full, "%s_fullregion%d.jpg"%(NAME,j))
Dtest_burst_sameness_manual.py15 import its.image
61 imgs[n] = its.image.convert_capture_to_rgb_image(cap)
62 tile = its.image.get_image_patch(imgs[n], 0.45, 0.45, 0.1, 0.1)
63 means = its.image.compute_image_means(tile)
71 its.image.write_image(imgs[i], "%s_frame%03d.jpg"%(NAME,i))
75 its.image.write_image(img_mean, "%s_mean.jpg"%(NAME))
Dtest_param_noise_reduction.py15 import its.image
62 rgb_image = its.image.convert_capture_to_rgb_image(cap)
63 its.image.write_image(
66 rgb_tile = its.image.get_image_patch(rgb_image, 0.45, 0.45, 0.1, 0.1)
67 ref_snr = its.image.compute_image_snrs(rgb_tile)
86 rgb_image = its.image.convert_capture_to_rgb_image(cap)
90 its.image.write_image(
93 rgb_tile = its.image.get_image_patch(
95 rgb_snrs = its.image.compute_image_snrs(rgb_tile)
Dtest_auto_vs_manual.py15 import its.image
59 img_auto = its.image.convert_capture_to_rgb_image(cap_auto)
60 its.image.write_image(img_auto, "%s_auto.jpg" % (NAME))
72 img_man1 = its.image.convert_capture_to_rgb_image(cap_man1)
73 its.image.write_image(img_man1, "%s_manual_wb.jpg" % (NAME))
86 img_man2 = its.image.convert_capture_to_rgb_image(cap_man2)
87 its.image.write_image(img_man2, "%s_manual_wb_tm.jpg" % (NAME))
/cts/tests/tests/media/src/android/media/cts/
DCodecUtils.java49 private ImageWrapper(Image image) { in ImageWrapper() argument
50 mImage = image; in ImageWrapper()
59 public static ImageWrapper createFromImage(Image image) { in createFromImage() argument
60 return new ImageWrapper(image); in createFromImage()
118 public native static int getImageChecksumAdler32(CodecImage image); in getImageChecksumAdler32() argument
119 public native static String getImageChecksumMD5(CodecImage image); in getImageChecksumMD5() argument
133 CodecImage image, Rect area, int y, int u, int v); in fillImageRectWithYUV() argument
135 public static void fillImageRectWithYUV(Image image, Rect area, int y, int u, int v) { in fillImageRectWithYUV() argument
136 fillImageRectWithYUV(ImageWrapper.createFromImage(image), area, y, u, v); in fillImageRectWithYUV()
139 public native static long[] getRawStats(CodecImage image, Rect area); in getRawStats() argument
[all …]
/cts/apps/CameraITS/tests/scene0/
Dtest_test_patterns.py19 import its.image
44 r, gr, gb, b = its.image.convert_capture_to_planes(cap, props)
45 r_tile = its.image.get_image_patch(r, 0.0, 0.0, 1.0, 1.0)
46 gr_tile = its.image.get_image_patch(gr, 0.0, 0.0, 1.0, 1.0)
47 gb_tile = its.image.get_image_patch(gb, 0.0, 0.0, 1.0, 1.0)
48 b_tile = its.image.get_image_patch(b, 0.0, 0.0, 1.0, 1.0)
75 img = its.image.convert_capture_to_rgb_image(cap, props=props)
80 tile = its.image.get_image_patch(img, float(i)/num_bars+delta,
82 color_match.append(np.allclose(its.image.compute_image_means(tile),
138 img = its.image.convert_capture_to_rgb_image(cap, props=props)
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DYuvImageTest.java97 YuvImage image; in testYuvImage() local
120 image = new YuvImage(yuv, FORMATS[i], width, height, null); in testYuvImage()
121 actual = image.getStrides(); in testYuvImage()
158 YuvImage image = generateYuvImage(FORMATS[i], in testCompressYuvToJpeg() local
164 compressRects(mTestBitmaps[j], image, in testCompressYuvToJpeg()
170 compressRects(mTestBitmaps[j], image, RECTS_SHIFTED[0], in testCompressYuvToJpeg()
174 compressOddRect(mTestBitmaps[j], image, RECT_ODD_SIDES); in testCompressYuvToJpeg()
184 YuvImage image = generateYuvImage(ImageFormat.YUY2, mTestBitmaps[0], 0); in testGetHeight() local
185 assertEquals(mTestBitmaps[0].getHeight(), image.getHeight()); in testGetHeight()
186 assertEquals(mTestBitmaps[0].getWidth(), image.getWidth()); in testGetHeight()
[all …]
/cts/apps/CameraITS/tests/inprog/
Dtest_burst_sameness_auto.py15 import its.image
68 imgs[n] = its.image.convert_capture_to_rgb_image(cap)
69 tile = its.image.get_image_patch(imgs[n], 0.45, 0.45, 0.1, 0.1)
70 means = its.image.compute_image_means(tile)
78 its.image.write_image(imgs[i], "%s_frame%03d.jpg"%(NAME,i))
82 its.image.write_image(img_mean, "%s_mean.jpg"%(NAME))
Dtest_blc_lsc.py15 import its.image
74 img = its.image.convert_capture_to_rgb_image(cap)
75 its.image.write_image(img, "%s_i=%d.jpg"%(NAME, i))
77 tile_center = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
78 rgb_means = its.image.compute_image_means(tile_center)
83 tile_corner = its.image.get_image_patch(img, 0.0, 0.0, 0.1, 0.1)
84 rgb_means = its.image.compute_image_means(tile_corner)
Dtest_rawstats.py15 import its.image
36 mean_image, var_image = its.image.unpack_rawstats_capture(cap)
43 its.image.write_image(m, "%s_mean_ch%d.jpg" % (NAME,ch), True)
44 its.image.write_image(v, "%s_var_ch%d.jpg" % (NAME,ch), True)
/cts/apps/CameraITS/tests/scene3/
Dtest_lens_position.py20 import its.image
76 cap = its.image.stationary_lens_cap(cam, req, fmt)
81 y, _, _ = its.image.convert_capture_to_planes(cap, props)
82 chart.img = its.image.normalize_img(its.image.get_image_patch(
84 its.image.write_image(chart.img, '%s_stat_i=%d_chart.jpg' % (NAME, i))
85 data['sharpness'] = white_level*its.image.compute_image_sharpness(
107 y, _, _ = its.image.convert_capture_to_planes(cap, props)
108 y = its.image.rotate_img_per_argv(y)
109 chart.img = its.image.normalize_img(its.image.get_image_patch(
111 its.image.write_image(chart.img, '%s_move_i=%d_chart.jpg' % (NAME, i))
[all …]

123456