
DOI: 10.7795/710.20230628
resource type: simulation data
title:	Simulation tool for "Influence of wave aberrations on MTF measurements modelled by the pupil function"

summary: 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)

creators: Markus Schake https://orcid.org/0000-0002-9883-3494 , Physikalisch-Technische Bundesanstalt, Bundesallee 100, 38116 Braunschweig, Fachbereich 4.2 Bild- und Wellenoptik

license:	CC-BY 4.0 International

keywords:    Modulation Transfer Function, Point Spread Function ; Line Spread Function ; Fraunhofer Diffraction ; Fourier optics ; Optical Simulation

classification:  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

project title:	MTF-Referenzmesstechnik

funder:	Trioptics GmbH (Strandbaddamm  6,  22880  Wedel,Germany), http://d-nb.info/gnd/1079292799

funding nr:

funding acknowledgement text: We want to acknowledge the support of this project by Trioptics GmbH (Strandbaddamm 6, 22880 Wedel,Germany).

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:
	-"PSF_MTF_Wavefrontaberration_simulator.m"
		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.
