The present invention discloses a method for adaptively generating simulated
stray light for PST testing, belonging to the technical field of
optical testing. Specifically, it includes: obtaining the parameters of the optical
system to be tested and the parameters of the test environment, establishing a
stray light model including
ray tracing, scattering, reflection, and
diffraction models, and simulating the
ray propagation path using an improved
ray tracing
algorithm; adjusting the
stray light generation parameters, such as
light source intensity,
wavelength, and incident angle, using an
adaptive algorithm based on
deep learning; generating simulated stray light according to the adjusted stray light generation parameters using a controllable stray light generation device, combining with
imaging technology to generate a simulated stray light distribution map, and then superimposing it on the imaging plane of the optical
system to obtain an imaging result including stray light; calculating the PST value according to the imaging result to evaluate the stray light performance of the optical
system, improving the accuracy and reliability of the stray light performance evaluation.