Searched refs:cam_rots (Results 1 – 1 of 1) sorted by relevance
/cts/apps/CameraITS/tests/sensor_fusion/ |
D | test_sensor_fusion.py | 101 cam_rots = get_cam_rotations(frames) 102 if max(abs(cam_rots)) < THRESH_MIN_ROT: 110 offset = get_best_alignment_offset(cam_times, cam_rots, events["gyro"]) 115 plot_rotations(cam_rots, gyro_rots) 118 dist = scipy.spatial.distance.correlation(cam_rots,gyro_rots) 123 def get_best_alignment_offset(cam_times, cam_rots, gyro_events): argument 144 dists.append(scipy.spatial.distance.correlation(cam_rots,gyro_rots)) 176 def plot_rotations(cam_rots, gyro_rots): argument 185 cam_rots = cam_rots * (360/(2*math.pi)) 187 pylab.plot(range(len(cam_rots)), cam_rots, 'r', label="camera") [all …]
|