We use a reflective phase-only liquid crystal-based spatial light modulator (SLM) for phase modulation. By encoding a grayscale image on the SLM, the refractive index of each cell can be altered. Phase patterns of PSFs with different shapes are optimized by the Gerchberg-Saxton algorithm.
This repository contains the MATLAB code for the phase retireval algorithm and some results.
@article{chen2017phase,
title={A phase-coded aperture camera with programmable optics},
author={Chen, Jieen and Hirsch, Michael and Heintzmann, Rainer and Eberhardt, Bernhard and Lensch, Hendrik},
journal={Electronic Imaging},
volume={2017},
number={17},
pages={70--75},
year={2017},
publisher={Society for Imaging Science and Technology}
}