A fully automatic real time system for the characterization of automotive headlamps