The Gerchberg–Saxton (GS) algorithm, which retrieves phase information from the measured intensities on two related planes (the source plane and the target plane), has been widely adopted in a variety of applications when holographic methods are chal