Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Pseudocode algorithm  





2 See also  





3 References  





4 External links  














GerchbergSaxton algorithm







Add links
 









Article
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Cite this page
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 


The Gerchberg-Saxton algorithm. FT is Fourier transform.

The Gerchberg–Saxton (GS) algorithm is an iterative phase retrieval algorithm for retrieving the phase of a complex-valued wavefront from two intensity measurements acquired in two different planes.[1] Typically, the two planes are the image plane and the far field (diffraction) plane, and the wavefront propagation between these two planes is given by the Fourier transform. The original paper by Gerchberg and Saxton considered image and diffraction pattern of a sample acquired in an electron microscope.

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 one-dimensional signals.

The pseudocode below performs the GS algorithm to obtain a phase distribution for the plane "Source", such that its Fourier transform would have the amplitude distribution of the plane "Target".

The Gerchberg-Saxton algorithm is one of the most prevalent methods used to create computer-generated holograms.[2]

Pseudocode algorithm[edit]

Let:
 FT – forward Fourier transform
 IFT – inverse Fourier transform
 i – the imaginary unit, √−1 (square root of −1)
 exp – exponential function (exp(x) = ex)
 Target and Source be the Target and Source Amplitude planes respectively
 A, B, C & D be complex planes with the same dimension as Target and Source
 Amplitude – Amplitude-extracting function:
   e.g. for complex z = x + iy, amplitude(z) = sqrt(x·x + y·y)
       for real x, amplitude(x) = |x|
 Phase – Phase extracting function:
   e.g. Phase(z) = arctan(y / x)
end Let

algorithm Gerchberg–Saxton(Source, Target, Retrieved_Phase) is
    A := IFT(Target)
    while error criterion is not satisfied
        B := Amplitude(Source) × exp(i × Phase(A))
        C := FT(B)
        D := Amplitude(Target) × exp(i × Phase(C))
        A := IFT(D)
    end while
    Retrieved_Phase = Phase(A)

This is just one of the many ways to implement the GS algorithm. Aside from optimizations, others may start by performing a forward Fourier transform to the source distribution.

See also[edit]

References[edit]

  1. ^ Gerchberg, R. W.; Saxton, W. O. (1972). "A practical algorithm for the determination of the phase from image and diffraction plane pictures" (PDF). Optik. 35: 237–246.
  • ^ Memmolo, Pasquale; Miccio, Lisa; Merola, Francesco; Paciello, Antonio; Embrione, Valerio; Fusco, Sabato; Ferraro, Pietro; Antonio Netti, Paolo (2014-01-01). "Investigation on specific solutions of Gerchberg–Saxton algorithm". Optics and Lasers in Engineering. 52: 206–211. doi:10.1016/j.optlaseng.2013.06.008. ISSN 0143-8166.
  • External links[edit]


    Retrieved from "https://en.wikipedia.org/w/index.php?title=Gerchberg–Saxton_algorithm&oldid=1198757838"

    Categories: 
    Digital signal processing
    Physical optics
    Hidden categories: 
    Webarchive template wayback links
    Articles with example pseudocode
     



    This page was last edited on 25 January 2024, at 00:23 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki