Movement Check
original_head_dev_t = transforms.invert_transform(data.info["dev_head_t"])
average_head_dev_t = transforms.invert_transform(compute_average_dev_head_t(data, head_pos))
# Plot the head positions
fig = viz.plot_head_positions(head_pos)
# Add horizontal lines for original and average head positions
for ax, val, val_ori in zip(fig.axes[::2], average_head_dev_t["trans"][:3, 3], original_head_dev_t["trans"][:3, 3]):
ax.axhline(1000 * val, color="r")
ax.axhline(1000 * val_ori, color="g")Head Movement Warning
Last updated