A Global approach to vision-based pedestrian detection for advanced driver assistance systems