Gerchberg–Saxton algorithm: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 1:
'''Gerchberg Saxton Algorithm'''
 
The Gerchberg Saxton (GS) algorithm is an algorithm used for retrieving the phase of a pair of light distributions (or any other mathematically valid distribution) related via [[Fourier transform]] if their intensities at their respective optical planes are known.
 
It is often necessary to know only the phase distribution from one of the planes, since the phase distribution on the other plane can be obtained by performing a Fourier transform on the plane whose phase is known. Although often used for two dimensional signals the GS algorithm is also valid for 1-d signals.
 
The Pseudo-code below performs the GS algorithm to obtain a phase distribution for the plane, Source, such that its Fourier transform would have the amplitude distrribution of the plane, Target.
 
 
===Pseudo-code algorithm===