Vision-based vehicle detection for a driver assistance system