Fig. 3

Gerchberg-Saxton algorithm taking into account the measured amplitude and phase to generate the hologram H. Here \(\phi _\text {rand}\) has values \(\in [-\pi , \pi )\), \(\angle E\) represents the phase of the complex field E, and \(\textrm{quant}()\) is a function that quantizes continuous values to integer grayscale values that can be displayed at the SLM.