aboutsummaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorTimothy Knight <tknight@google.com>2014-09-09 18:00:56 -0700
committerTimothy Knight <tknight@google.com>2014-09-10 01:01:50 +0000
commitc0e7bda74eedf36b09a22032af106fa840f58330 (patch)
tree9f167f65fd07ee42885bddcea925e9fc2c18d453 /apps
parent7e97f8dc5b38c86be65c7d5a97ca5a8e2132137e (diff)
downloadpdk-c0e7bda74eedf36b09a22032af106fa840f58330.tar.gz
CameraITS: Added image dump to formats test
Change-Id: I69116a7d4d1212614c59d2a49ab601e6d45593ed
Diffstat (limited to 'apps')
-rw-r--r--apps/CameraITS/tests/scene1/test_formats.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/CameraITS/tests/scene1/test_formats.py b/apps/CameraITS/tests/scene1/test_formats.py
index 16fc3fd..402a3e2 100644
--- a/apps/CameraITS/tests/scene1/test_formats.py
+++ b/apps/CameraITS/tests/scene1/test_formats.py
@@ -46,6 +46,8 @@ def main():
assert(cap["height"] == size[1])
print "Captured YUV %dx%d" % (cap["width"], cap["height"])
img = its.image.convert_capture_to_rgb_image(cap)
+ its.image.write_image(img, "%s_yuv_w%d_h%d.jpg"%(
+ NAME,size[0],size[1]))
tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
rgb = its.image.compute_image_means(tile)
rgbs.append(rgb)
@@ -57,6 +59,8 @@ def main():
assert(cap["width"] == size[0])
assert(cap["height"] == size[1])
img = its.image.decompress_jpeg_to_rgb_image(cap["data"])
+ its.image.write_image(img, "%s_jpg_w%d_h%d.jpg"%(
+ NAME,size[0], size[1]))
assert(img.shape[0] == size[1])
assert(img.shape[1] == size[0])
assert(img.shape[2] == 3)