1. A method of optimizing an optical system defined by at least one parameter, wherein the method comprises steps of: a) determining, based on a first image without distortion, a second image with distortion introduced by the optical system, b) simulating human attention on the first image and the second image by using a computational model of visual attention, to obtain a simulated human attention on both images, c) evaluating an attentional performance of the optical system based on the simulated human attention on both images, d) adjusting the at least one parameter of the optical system to improve the attentional performance.