The effects of simulated acuity and contrast sensitivity impairments on detection of pedestrian hazards in a driving simulator.