Real-time optical flow