Optical flow motion detection