Optimal illuminator design for automatic optical inspection systems. (17th March 2010)