An illumination optimization system for use with an imaging apparatus including a source of illumination, an imaging lens having an entrance pupil and depth of focus, a reticle having one or more features to be imaged, and an imaging plane, the optimization system comprising:
- (a) determination means for determining aerial images at the imaging plane of one or more of the reticle features;
- (b) image analyzing means coupled to said determination means, for comparing said aerial images of said reticle features determined by said determination means to a target aerial imaged for generating illumination data defining an illumination that minimizes the difference between said reticle feature aerial image and said target aerial image, and for outputting said illumination data;
- and
- (c) illumination control means, coupled to the source of illumination and said image analyzing means, for controlling said source of illumination based on said illumination data such that said source of illumination provides said illumination that minimizes the difference between said reticle feature aerial image and said target aerial image.