Home
last modified time | relevance | path

Searched refs:chart (Results 1 – 7 of 7) sorted by relevance

/cts/apps/CameraITS/tests/scene3/
Dtest_lens_position.py34 def test_lens_position(cam, props, fmt, sensitivity, exp, chart): argument
75 chart.img = its.image.normalize_img(its.image.get_image_patch(
76 y, chart.xnorm, chart.ynorm, chart.wnorm, chart.hnorm))
77 its.image.write_image(chart.img, '%s_stat_i=%d_chart.jpg' % (NAME, i))
79 chart.img)
102 chart.img = its.image.normalize_img(its.image.get_image_patch(
103 y, chart.xnorm, chart.ynorm, chart.wnorm, chart.hnorm))
104 its.image.write_image(chart.img, '%s_move_i=%d_chart.jpg' % (NAME, i))
106 chart.img)
122 chart = its.cv2image.Chart()
[all …]
Dtest_edge_enhancement.py31 def test_edge_mode(cam, edge_mode, sensitivity, exp, fd, out_surface, chart): argument
64 chart.img = its.image.normalize_img(its.image.get_image_patch(
65 y, chart.xnorm, chart.ynorm, chart.wnorm, chart.hnorm))
68 chart.img, "%s_edge=%d.jpg" % (NAME, edge_mode))
70 sharpness_list.append(its.image.compute_image_sharpness(chart.img))
94 chart = its.cv2image.Chart()
114 ret = test_edge_mode(cam, edge_mode, s, e, fd, out_surface, chart)
Dtest_reprocess_edge_enhancement.py51 def test_edge_mode(cam, edge_mode, sensitivity, exp, fd, out_surface, chart, argument
90 chart.img = its.image.normalize_img(its.image.get_image_patch(
91 y, chart.xnorm, chart.ynorm, chart.wnorm, chart.hnorm))
93 its.image.write_image(chart.img, "%s_reprocess_fmt_%s_edge=%d.jpg" %
96 sharpness_list.append(its.image.compute_image_sharpness(chart.img))
126 chart = its.cv2image.Chart()
158 ret = test_edge_mode(cam, edge_mode, s, e, fd, out_surface, chart)
185 chart, reprocess_format)
Dtest_lens_movement_reporting.py33 def test_lens_movement_reporting(cam, props, fmt, gain, exp, af_fd, chart): argument
81 chart.img = its.image.normalize_img(its.image.get_image_patch(
82 y, chart.xnorm, chart.ynorm, chart.wnorm, chart.hnorm))
83 its.image.write_image(chart.img, '%s_i=%d_chart.jpg' % (NAME, i))
85 chart.img)
105 chart = its.cv2image.Chart()
116 d = test_lens_movement_reporting(cam, props, fmt, s, e, fd, chart)
Dtest_flip_mirror.py34 def test_flip_mirror(cam, props, fmt, chart): argument
62 patch = its.image.get_image_patch(y, chart.xnorm, chart.ynorm,
63 chart.wnorm, chart.hnorm)
65 patch = its.cv2image.scale_img(patch.astype(np.uint8), chart.scale)
123 chart = its.cv2image.Chart()
129 test_flip_mirror(cam, props, fmt, chart)
/cts/apps/CameraITS/pymodules/its/
Dcv2image.py176 chart, scene, s_factor = self._calc_scale_factors(cam, props, fmt,
194 if (scene_scaled.shape[0] < chart.shape[0] or
195 scene_scaled.shape[1] < chart.shape[1]):
197 result = cv2.matchTemplate(scene_scaled, chart, cv2.TM_CCOEFF)
222 h, w = chart.shape
356 chart = cv2.imread(chart_file, cv2.IMREAD_ANYDEPTH)
357 white_level = numpy.amax(chart).astype(float)
360 blur = cv2.blur(chart, (j, j))
/cts/apps/CameraITS/tools/
Drun_all_tests.py473 chart = its.cv2image.Chart(SCENE3_FILE, chart_height,
478 chart.xnorm, chart.ynorm, chart.wnorm, chart.hnorm,
479 chart.scale)