Files
datamoshing/horizontal_motion_example.py
2021-03-25 15:04:34 +01:00

12 lines
278 B
Python

def mosh_frames(frames):
for frame in frames:
if not frame:
continue
for row in frame:
for col in row:
# col contains the horizontal and vertical components of the vector
col[0] = 0
return frames