Optical flow in driver assistance systems