Title: Simulation tool for "Influence of wave aberrations on MTF measurements modelled by the pupil function"
Authors: Schake, Markus, Physikalisch-Technische Bundesanstalt (PTB), Fachbereich 4.2 Bild- und Wellenoptik, ORCID: https://orcid.org/0000-0002-9883-3494
Contributors: HostingInstitution: Physikalisch-Technische Bundesanstalt (PTB), ISNI: 0000 0001 2186 1887
Resource Type: Dataset / Simulation Data
Publisher: Physikalisch-Technische Bundesanstalt (PTB)
Rights: https://creativecommons.org/licenses/by/4.0/
CC-BY 4.0 International
Dates: Available: 2023-06-28
Classifications: OCIS 110.4100 Modulation transfer function ; OCIS 220.1010 Aberrations ; OCIS 120.4800 Optical standards and testing ; OCIS 220.3630 Lenses ; OCIS 050.1220 Apertures
File: Download File (application/zip) 12.48 kB (12784 Bytes)
MD5 Checksum: 5a338ff964771dee044c4cb107cafa5f
SHA256 Checksum: d901a5a0e571e37d3913d0dfba93cdf8a3b6462bcf3e1bf23056d506c086ed75
Keywords: Modulation Transfer Function ; Point Spread Function ; Line Spread Function ; Fraunhofer Diffraction ; Fourier optics ; Optical Simulation
Abstract: The provided simulation tool enables the immediate replication of the results presented in "Influence of wave aberrations on MTF measurements modelled by the pupil function."
The software contains four different models to simulate the influence of wavefront aberrations in a rectangular aperture modelled by the complex pupil function on the resulting point spread function (PSF) and modulation transfer function (MTF).
The different methods include:
-Analytical solution of the Fraunhofer integral for a rectangular aperture with no wavefront aberration (Reference case for comparison)
-Numerical superposition of elementary waves from the aperture plane employing wavefront propagation and Huygens's principle
-Numerical solution of the Fraunhofer integral in the focal plane of a lens
-Fourier-optical determination of the far field diffraction pattern of the aperture in the focal plane of a lens
For more informations about the different methods, the reader is referred to the open acces article "Influence of wave aberrations on MTF measurements modelled by the pupil function," which is accessible in the archive of the 124-th DGAO in 2023 under number B44. (https://www.dgao-proceedings.de)
Other: We want to acknowledge the support of this project by Trioptics GmbH (Strandbaddamm 6, 22880 Wedel,Germany).
Remark: recommended software for reading: MATLAB R2016b, Python (https://docs.scipy.org/doc/scipy/reference/generated/scipy.io.loadmat.html)
- The simulation files are *.m files and require MATLAB to be executed. However, they may be opened in a text editor to view the code.
- The code may be transferred into a python application using the "numpy", "matplotlib" and other associated libraries.

description of the individual files:
The simulation is started by execution of the file "PSF_MTF_Wavefrontaberration_simulator.m" in Matlab.
The file is commented and indicates the most important settings for the simulation in the sections
%% Simulation parameters
%% Specimen parameters
%% Fitting parameters
%% Wavefront error
There user entries are required to setup different simulation scenarios.
The default settings match the simulation presented in the article.

-"isodd.m", "sphereFit.m", "zernike_poly_r.m", "zernike_poly_xy_cartesian.m", "zernike_R_nm.m", "zernike_R_nm_cartesian.m", "zernike_R_nm_norm.m", "zernike_R_nm_norm_cartesian.m" are *.m files containing supplementary functions, which are called from the main executable file to perform certain calculations. They don't need to be changed for the simulation to run properly.
Funding: Trioptics GmbH, Other: http://d-nb.info/gnd/1079292799, Grant Title: MTF-Referenzmesstechnik