Laser Speckle / Point Spread Function Generator
Version 1.0.1 (3.21 KB) by
Marcoleonetti1
Generation of laser speckle with controlled Numerical Aperture and wavelength. Also simulates point spread function of an objective.
Laser Speckle generated thorugh an objective by Marco Leonetti. 18/06/2021. Algorithm based on the summation of plane waves with K vectors extracted randomply with directions compatible with an objective lens (with Numerical aperture NA) illuimination. The model is for one or two polarization (Polarizations Variable). The software also support the simulation of the focused spot size (focusing Point Spread Function ) of an objective. (Put Sim_Objective to 1) in this case the plane wave dephasing is set to zero (flat wavefront at the objective input).
See also https://mlphotonics.wordpress.com/
Cite As
Marcoleonetti1 (2024). Laser Speckle / Point Spread Function Generator (https://www.mathworks.com/matlabcentral/fileexchange/94310-laser-speckle-point-spread-function-generator), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2019b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.