Searched refs:cam_times (Results 1 – 3 of 3) sorted by relevance
/cts/apps/CameraITS/utils/ |
D | sensor_fusion_utils_tests.py | 95 cam_times = np.array(range(pts[0], pts[9], self._CAM_FRAME_TIME)) 117 return cam_times, cam_rots, gyro_events 127 cam_times, cam_rots, gyro_events = self._generate_test_waveforms( 130 gyro_events, cam_times) 145 cam_times, cam_rots, gyro_events = self._generate_test_waveforms( 151 cam_times, cam_rots, gyro_events)
|
D | sensor_fusion_utils.py | 397 def get_gyro_rotations(gyro_events, cam_times): argument 413 if gyro_times[0] > cam_times[0] or gyro_times[-1] < cam_times[-1]: 419 for i_cam in range(len(cam_times)-1): 422 t_cam0 = cam_times[i_cam] 423 t_cam1 = cam_times[i_cam+1] 583 def get_best_alignment_offset(cam_times, cam_rots, gyro_events, degree=2): argument 615 shifted_cam_times = cam_times + shift*_MSEC_TO_NSEC
|
/cts/apps/CameraITS/tests/sensor_fusion/ |
D | test_sensor_fusion.py | 304 def _assert_gyro_encompasses_camera(self, cam_times, gyro_times): argument 317 min_cam_time = min(cam_times) * _NSEC_TO_SEC 318 max_cam_time = max(cam_times) * _NSEC_TO_SEC 377 cam_times = _get_cam_times( 380 self._assert_gyro_encompasses_camera(cam_times, gyro_times) 388 events['gyro'], cam_times) 400 cam_times, cam_rots, events['gyro'], degree=degree
|