/pdk/apps/CameraITS/pymodules/its/ |
D | image.py | 101 def unpack_raw10_image(img): argument 113 if img.shape[1] % 5 != 0: 115 w = img.shape[1]*4/5 116 h = img.shape[0] 118 msbs = numpy.delete(img, numpy.s_[4::5], 1) 123 lsbs = img[::, 4::5].reshape(h,w/4) 176 img = numpy.ndarray(shape=(h*w,), dtype='<u2', 178 img = img.astype(numpy.float32).reshape(h,w) / white_level 179 imgs = [img[::2].reshape(w*h/2)[::2].reshape(h/2,w/2,1), 180 img[::2].reshape(w*h/2)[1::2].reshape(h/2,w/2,1), [all …]
|
/pdk/apps/CameraITS/tests/scene1/ |
D | test_yuv_jpeg_all.py | 50 img = its.image.convert_capture_to_rgb_image(cap) 51 its.image.write_image(img, "%s_yuv_w%d_h%d.jpg"%( 53 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1) 63 img = its.image.decompress_jpeg_to_rgb_image(cap["data"]) 64 its.image.write_image(img, "%s_jpg_w%d_h%d.jpg"%( 66 assert(img.shape[0] == size[1]) 67 assert(img.shape[1] == size[0]) 68 assert(img.shape[2] == 3) 70 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
|
D | test_crop_region_raw.py | 61 img = its.image.convert_capture_to_rgb_image(cap, props=props) 62 its.image.write_image(img, "%s_%s.jpg" % (NAME, s)) 67 imgs[s] = img 83 for s,img in imgs.iteritems(): 84 h,w,ch = img.shape 88 img = img.reshape(h/m,m,w/m,m,3).mean(3).mean(1).reshape(h/m,w/m,3) 89 imgs2[s] = img 90 print s, img.shape 102 for s,img in imgs2.iteritems(): 103 its.image.write_image(img, "%s_comp_%s.jpg" % (NAME, s))
|
D | test_yuv_plus_raw.py | 44 img = its.image.convert_capture_to_rgb_image(cap_yuv) 45 its.image.write_image(img, "%s_yuv.jpg" % (NAME), True) 46 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1) 51 img = its.image.convert_capture_to_rgb_image(cap_raw, props=props) 52 its.image.write_image(img, "%s_raw.jpg" % (NAME), True) 53 tile = its.image.get_image_patch(img, 0.475, 0.475, 0.05, 0.05)
|
D | test_yuv_plus_raw10.py | 46 img = its.image.convert_capture_to_rgb_image(cap_yuv) 47 its.image.write_image(img, "%s_yuv.jpg" % (NAME), True) 48 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1) 53 img = its.image.convert_capture_to_rgb_image(cap_raw, props=props) 54 its.image.write_image(img, "%s_raw.jpg" % (NAME), True) 55 tile = its.image.get_image_patch(img, 0.475, 0.475, 0.05, 0.05)
|
D | test_yuv_plus_jpeg.py | 46 img = its.image.convert_capture_to_rgb_image(cap_yuv, True) 47 its.image.write_image(img, "%s_yuv.jpg" % (NAME)) 48 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1) 51 img = its.image.convert_capture_to_rgb_image(cap_jpeg, True) 52 its.image.write_image(img, "%s_jpeg.jpg" % (NAME)) 53 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
|
D | test_jpeg.py | 43 img = its.image.convert_capture_to_rgb_image(cap) 44 its.image.write_image(img, "%s_fmt=yuv.jpg" % (NAME)) 45 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1) 52 img = its.image.decompress_jpeg_to_rgb_image(cap["data"]) 53 its.image.write_image(img, "%s_fmt=jpg.jpg" % (NAME)) 54 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
|
D | test_tonemap_sequence.py | 47 img = its.image.convert_capture_to_rgb_image(cap) 48 its.image.write_image(img, "%s_i=%d.jpg" % (NAME, i)) 49 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1) 56 img = its.image.convert_capture_to_rgb_image(cap) 57 its.image.write_image(img, "%s_i=%d.jpg" % (NAME, i)) 58 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
|
D | test_black_white.py | 48 img = its.image.convert_capture_to_rgb_image(cap) 49 its.image.write_image(img, "%s_black.jpg" % (NAME)) 50 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1) 63 img = its.image.convert_capture_to_rgb_image(cap) 64 its.image.write_image(img, "%s_white.jpg" % (NAME)) 65 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
|
D | test_param_tonemap_mode.py | 65 img = its.image.convert_capture_to_rgb_image(cap) 67 img, "%s_n=%d.jpg" %(NAME, n)) 68 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1) 90 img = its.image.convert_capture_to_rgb_image(cap) 92 img, "%s_size=%02d.jpg" %(NAME, size)) 93 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
|
D | test_linearity.py | 75 img = its.image.convert_capture_to_rgb_image(cap) 77 img, "%s_sens=%04d.jpg" % (NAME, sens)) 78 img = its.image.apply_lut_to_image(img, inv_gamma_lut[1::2] * LM1) 79 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
|
D | test_param_flash_mode.py | 49 img = its.image.convert_capture_to_rgb_image(cap) 50 its.image.write_image(img, "%s_mode=%d.jpg" % (NAME, f)) 51 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
|
D | test_param_noise_reduction.py | 61 img = planes[j] 62 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1) 79 img = planes[j] 80 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
|
D | test_param_exposure_time.py | 45 img = its.image.convert_capture_to_rgb_image(cap) 47 img, "%s_frame%d.jpg" % (NAME, i)) 48 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
|
D | test_param_sensitivity.py | 51 img = its.image.convert_capture_to_rgb_image(cap) 53 img, "%s_iso=%04d.jpg" % (NAME, s)) 54 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
|
D | test_locked_burst.py | 55 img = its.image.convert_capture_to_rgb_image(cap) 56 its.image.write_image(img, "%s_frame%d.jpg"%(NAME,i)) 57 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
|
D | test_yuv_plus_dng.py | 38 img = its.image.convert_capture_to_rgb_image(cap_yuv) 39 its.image.write_image(img, "%s.jpg" % (NAME))
|
D | test_exposure.py | 60 img = its.image.convert_capture_to_rgb_image(cap) 61 its.image.write_image(img, "%s_mult=%02d.jpg" % (NAME, m)) 62 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
|
D | test_param_color_correction.py | 75 img = its.image.convert_capture_to_rgb_image(cap) 76 its.image.write_image(img, "%s_req=%d.jpg" % (NAME, i)) 77 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
|
D | test_latching.py | 67 img = its.image.convert_capture_to_rgb_image(cap) 68 its.image.write_image(img, "%s_i=%02d.jpg" % (NAME, i)) 69 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
|
/pdk/apps/TestingCamera2/src/com/android/testingcamera2/ |
D | ImageReaderSubPane.java | 291 Image img = mCurrentImages.get(mCurrentImageIdx); in updateImage() 301 switch (img.getFormat()) { in updateImage() 303 ByteBuffer jpegBuffer = img.getPlanes()[0].getBuffer(); in updateImage() 313 ByteBuffer yBuffer = img.getPlanes()[0].getBuffer(); in updateImage() 333 ShortBuffer rawBuffer = img.getPlanes()[0].getBuffer().asShortBuffer(); in updateImage() 456 Image img = mCurrentImages.get(mCurrentImageIdx); 458 String name = saveImage(img); 484 private String saveImage(Image img) throws IOException { in saveImage() argument 485 long timestamp = img.getTimestamp(); in saveImage() 486 File output = getOutputImageFile(img.getFormat(), timestamp); in saveImage() [all …]
|
/pdk/apps/CameraITS/tests/inprog/ |
D | test_test_patterns.py | 36 img = its.image.convert_capture_to_rgb_image(caps[1]) 37 its.image.write_image(img, "%s_pattern=%d.jpg" % (NAME, i))
|
D | test_param_edge_mode.py | 43 img = its.image.convert_capture_to_rgb_image(cap) 44 its.image.write_image(img, "%s_mode=%d.jpg" % (NAME, e))
|
D | test_blc_lsc.py | 75 img = its.image.convert_capture_to_rgb_image(cap) 76 its.image.write_image(img, "%s_i=%d.jpg"%(NAME, i)) 78 tile_center = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1) 84 tile_corner = its.image.get_image_patch(img, 0.0, 0.0, 0.1, 0.1)
|
D | test_crop_region.py | 59 img = its.image.convert_capture_to_rgb_image(cap) 61 its.image.write_image(img, "%s_img%d.jpg"%(name,i))
|