A Two-Dimensional Weighting Function for a Driver Assistance System