/cts/apps/CameraITS/tests/scene3/ |
D | test_edge_enhancement.py | 56 cam, edge_mode, sensitivity, exp, fd, out_surface, chart, argument 91 chart.img = image_processing_utils.get_image_patch( 92 y, chart.xnorm, chart.ynorm, chart.wnorm, chart.hnorm) 95 chart.img, f'{name_with_log_path}_edge={edge_mode}.jpg') 98 image_processing_utils.compute_image_sharpness(chart.img)*255) 131 chart = opencv_processing_utils.Chart( 156 cam, edge_mode, s, e, fd, out_surface, chart, name_with_log_path)
|
D | test_landscape_to_portrait.py | 66 def _verify_opt_val(chart): argument 72 if chart.opt_val is None: 74 elif chart.opt_val < _OPT_VAL_THRESHOLD: 114 chart = opencv_processing_utils.Chart( 117 _verify_opt_val(chart) 143 chart = opencv_processing_utils.Chart( 146 _verify_opt_val(chart)
|
D | test_reprocess_edge_enhancement.py | 70 cam, edge_mode, sensitivity, exp, fd, out_surface, chart, argument 110 chart.img = image_processing_utils.get_image_patch( 111 y, chart.xnorm, chart.ynorm, chart.wnorm, chart.hnorm) 114 chart.img, 118 image_processing_utils.compute_image_sharpness(chart.img)*255) 158 chart = opencv_processing_utils.Chart( 189 cam, edge_mode, s, e, fd, out_surface, chart, name_with_log_path) 220 cam, edge_mode, s, e, fd, out_surface, chart, name_with_log_path,
|
D | test_flip_mirror.py | 40 def test_flip_mirror_impl(cam, props, fmt, chart, first_api_level, argument 63 y, chart.xnorm, chart.ynorm, chart.wnorm, chart.hnorm) 72 chart_uint8 = opencv_processing_utils.scale_img(chart_uint8, chart.scale) 152 chart = opencv_processing_utils.Chart( 157 test_flip_mirror_impl(cam, props, fmt, chart, first_api_level,
|
D | test_lens_movement_reporting.py | 46 cam, props, fmt, gain, exp, af_fd, chart, log_path): argument 92 chart.img = image_processing_utils.normalize_img( 94 y, chart.xnorm, chart.ynorm, chart.wnorm, chart.hnorm)) 96 chart.img, f'{os.path.join(log_path, _NAME)}_i={i}.jpg') 98 white_level * image_processing_utils.compute_image_sharpness(chart.img)) 130 chart = opencv_processing_utils.Chart( 140 cam, props, fmt, s, e, af_fd, chart, self.log_path)
|
/cts/apps/CameraITS/utils/ |
D | image_processing_utils_tests.py | 84 chart = cv2.imread(chart_file, cv2.IMREAD_ANYDEPTH) 85 white_level = numpy.amax(chart).astype(float) 88 chart_blurred = cv2.blur(chart, (blur, blur)) 148 chart = cv2.imread(chart_file, cv2.IMREAD_ANYDEPTH) 149 chart_3d = chart[:, :, numpy.newaxis] 153 chart_blurred = cv2.blur(chart, (self._BLUR_LEVEL, self._BLUR_LEVEL))
|
D | opencv_processing_utils.py | 353 chart, scene, s_factor = self._calc_scale_factors(cam, props, fmt, log_path, 372 if (scene_scaled.shape[0] < chart.shape[0] or 373 scene_scaled.shape[1] < chart.shape[1]): 376 scale, scene_scaled.shape, chart.shape) 378 result = cv2.matchTemplate(scene_scaled, chart, cv2.TM_CCOEFF_NORMED) 405 h, w = chart.shape
|