OTSLM toolbox for Structured Light Methods

We present a new Matlab toolbox for generating phase and amplitude patterns for digital micro-mirror device (DMD) and liquid crystal (LC) based spatial light modulators (SLMs). This toolbox consists of a collection of algorithms commonly used for generating patterns for these devices with a focus on optical tweezers beam shaping applications. In addition to the algorithms provided, we have put together a range of user interfaces for simplifying the use of these patterns. The toolbox currently has functionality to generate patterns which can be saved as an image or displayed on a device/screen using the supplied interface. We have only implemented interfaces for the devices our group currently uses but we believe that extending the code we provide to other devices should be fairly straightforward. The range of algorithms included in the toolbox is not exhaustive. However, by making the toolbox open sources and available on GitHub we hope that other researchers working with these devices will contribute their patterns/algorithms to the toolbox. Program summary: Program Title: OTSLM Toolbox for Structured Light Methods Program Files doi: http://dx.doi.org/10.17632/8sc66m9r7s.1 Licensing provisions: GPLv3 Programming language: Matlab Nature of problem: There are many algorithms for generating computer controlled holograms however the code and descriptions for these algorithms is often provided as supplementary material to research publications which use these methods, and in some cases only the description is provided without code to reproduce the pattern. Furthermore, implementation of these algorithms can be a time consuming task. Even for simple patterns with simple analytical expressions for the far-field phase or amplitude, such as the Laguerre-Gaussian and Hermite-Gaussian beams, time is often wasted by researchers having to re-implement and test these patterns. Existing libraries for generation of SLM patterns focus on specific tasks, methods of pattern generation, or target specific hardware. These libraries are not general purpose or easily modifiable for general use by researchers working with computer controlled holograms in fields such as beam shaping and optical tweezers. Solution method: We have assembled a toolbox containing many methods commonly used with these devices. The number of methods available makes assembling a complete toolbox impossible, instead we have focused on putting together a general collection of methods, in the form of an open source toolbox, with the hope that other researchers will contribute patterns/algorithms they use. The toolbox currently includes a range of simple and iterative methods for beam shaping and steering as well as some of the methods our group currently uses for SLM control, calibration, imaging and optical tweezers beam shaping. To make the tools we have developed easy to use, we have tried to maintain a consistent well documented interface to each of the functions and provided graphical user interfaces to many of the simpler functions enabling code-free pattern generation. Additional comments: Some of the features require the Optical Tweezers Toolbox [1], in particular, the non-paraxial beam visualisation and optimisation routines. Certain functions require components from other Matlab packages such as the image acquisition toolbox, these can be licensed and installed from Mathworks. There is also interest from the authors in providing a Python version that requires no proprietary components depending on interest from the community. A public repository for the toolbox is available on GitHub [2]. References [1] Optical Tweezers Toolbox (Version 1), https://github.com/ilent2/ott, (2019). [2] OTSLM, https://github.com/ilent2/otslm, (2019).

[1]  S. Bernet,et al.  What spatial light modulators can do for optical microscopy , 2011 .

[2]  Yael Roichman,et al.  Holographic optical trapping. , 2006, Applied optics.

[3]  Zeev Zalevsky,et al.  Geometrically superresolved lensless imaging using a spatial light modulator. , 2011, Applied optics.

[4]  Matthew T. Dearing,et al.  Holographic Optical Tweezers , 2000 .

[5]  J. M. de Bougrenet de la Tocnaye,et al.  Complex amplitude modulation by use of liquid-crystal spatial light modulators. , 1997, Applied optics.

[6]  Giorgio Volpe,et al.  Step-by-step guide to the realization of advanced optical tweezers , 2015, 1501.07894.

[7]  G. F. Zebende,et al.  Propagating free-space nonparaxial beams. , 2007, Journal of the Optical Society of America. A, Optics, image science, and vision.

[8]  Silvio Bianchi,et al.  Hologram transmission through multi-mode optical fibers. , 2011, Optics express.

[9]  A. Kuhn,et al.  Fast algorithms for generating binary holograms , 2014, 1409.1841.

[10]  E. G. van Putten,et al.  Spatial amplitude and phase modulation using commercial twisted nematic LCDs. , 2007, Applied optics.

[11]  G. Shabtay Three-dimensional beam forming and Ewald’s surfaces , 2003 .

[12]  Giancarlo Ruocco,et al.  Computer generation of optimal holograms for optical trap arrays. , 2007, Optics express.

[13]  Avid,et al.  High-speed spatial control of the intensity , phase and polarisation of vector beams using a digital micro-mirror device , 2016 .

[14]  David B. Phillips,et al.  "Red Tweezers": Fast, customisable hologram generation for optical tweezers , 2014, Comput. Phys. Commun..

[15]  Johannes Courtial,et al.  Experimental demonstration of holographic three-dimensional light shaping using a Gerchberg–Saxton algorithm , 2005 .

[16]  Nadav Katz,et al.  Shaping Laguerre-Gaussian laser modes with binary gratings using a digital micromirror device. , 2012, Optics letters.

[17]  Nikola Krstajić,et al.  Development of a doubly weighted Gerchberg-Saxton algorithm for use in multibeam imaging applications. , 2014, Optics letters.

[18]  Theo Lasser,et al.  Fast focus field calculations. , 2006, Optics express.

[19]  Jian Wang,et al.  Arbitrary manipulation of spatial amplitude and phase using phase-only spatial light modulators , 2014, Scientific Reports.

[20]  Tomáš Čižmár,et al.  High-speed spatial control of the intensity, phase and polarisation of vector beams using a digital micro-mirror device. , 2016, Optics express.

[21]  D. Cassettari,et al.  High-fidelity phase and amplitude control of phase-only computer generated holograms using conjugate gradient minimisation. , 2017, Optics express.

[22]  A. Gennerich Optical Tweezers , 2017, Methods in Molecular Biology.

[23]  Cornelia Denz,et al.  Advanced optical trapping by complex beam shaping , 2013 .

[24]  Johannes Courtial,et al.  Iterative algorithms for holographic shaping of non-diffracting and self-imaging light beams. , 2006, Optics express.

[25]  Ji Xu,et al.  Holographic optical tweezers obtained by using the three-dimensional Gerchberg–Saxton algorithm , 2013 .

[26]  Optical manipulation of microobjects using binary diffractive elements , 2014, Optical Memory and Neural Networks.

[27]  S. A. Goorden,et al.  Superpixel-based spatial amplitude and phase modulation using a digital micromirror device. , 2014, Optics express.

[28]  Tomáš Čižmár,et al.  Shaping the future of manipulation , 2011 .

[29]  R. Gerchberg A practical algorithm for the determination of phase from image and diffraction plane pictures , 1972 .

[30]  E. Pleguezuelos,et al.  HoloTrap: Interactive hologram design for multiple dynamic optical trapping , 2007, Comput. Phys. Commun..

[31]  Halina Rubinsztein-Dunlop,et al.  Sculptured light and switching for complex systems (Conference Presentation) , 2018 .

[32]  Miles J. Padgett,et al.  Tweezers with a twist , 2011 .

[33]  Miles Padgett,et al.  Holographic optical tweezers and their relevance to lab on chip devices. , 2011, Lab on a chip.

[34]  Halina Rubinsztein-Dunlop,et al.  Orientation of swimming cells with annular beam optical tweezers , 2019, Optics Communications.

[35]  Alexander Jesacher,et al.  Full phase and amplitude control of holographic optical tweezers with high efficiency. , 2008, Optics express.

[36]  Neal Radwell,et al.  Comparison of beam generation techniques using a phase only spatial light modulator. , 2016, Optics express.

[37]  N. Delen,et al.  Free-space beam propagation between arbitrarily oriented planes based on full diffraction theory: a fast Fourier transform approach , 1998 .

[38]  mith,et al.  Vector fields in a tight laser focus: comparison of models , 2017 .

[39]  N Yoshikawa,et al.  Phase optimization of a kinoform by simulated annealing. , 1994, Applied optics.