estimate velocities from optical flow