1. A method for generating a simulated aerial image, comprising: forming a reference aerial image of a first mask using an optical system; capturing and processing the reference aerial image so as to generate a set of expansion functions representative of the optical system; and computing the simulated aerial image of a second mask by applying the expansion functions to a design of the second mask.