A library to create layouts of various shapes for wavefrontshaping using DMDs or SLMs. It is specifically designed to work with the ALP4lib module to control Vialux DMDs but can also be used for other types of SLMs or DMDs. In particular, it allows generating bitplanes in C format data that can be sent to the DMD with fast transfer time (see Vialux documentation). The corresponding function are coded in Cython for optimized computation speed.
Citing the code
If you find this tool usefull, please consider citing our paper: M. Matthès, P. del Hougne, J. de Rosny, G. Lerosey, and S. Popoff, "Optical complex media as universal reconfigurable linear operators," Optica 6, 465-472 (2019).
If you are using conda:
conda install cython
or with pip
pip install cython
Download the files and execute the following command.
python setup.py install