A Matlab GUI for simulating five types of diffraction propagation:
- Fourier transform
- Fresnel transfer function
- Fresnel impulse response
- Fraunhofer diffraction
- Angular spectrum
- Run MainScreen.m
- Choose an object image with the
Open object image
button - Check the object image is correct with the left axes.
- Choose the type of diffraction propagation to simulate from the centre options.
- If required, change the parameters of the simulation in the bottom section.
- Click
Run
to start the diffraction propagation simulation to the object image. - The diffraction pattern will be displayed in the right axes.
- Zoom and pan the diffraction image with the controls in the toolbar.
- Save the diffraction pattern using the
Save diffraction pattern
button.
Performs the standard two dimensional Fourier Transform function.
Based on the Rayleigh-Sommerfield diffraction solution:
and uses the transfer function H given by:
Again, based on the Rayleigh-Sommerfield diffraction solution
Diffraction pattern image colours by: cbrewer
Colour scheme designed by: Cynthia Brewer.