Source: https://www.cs.unc.edu/~ezheng/resources/video_l1/video3D_l1_final.pdf