# 格尔希伯格–萨克斯顿算法

**格尔希伯格–萨克斯顿算法**（Gerchberg–Saxton algorithm）是一种迭代相位恢复方法，通过两次强度测量来恢复波场的相位，这两次测量通常是电子显微镜或光学系统的像平面和衍射平面上记录的强度。该算法由R. W. 格尔希伯格（R. W. Gerchberg）和W. O. 萨克斯顿（W. O. Saxton）于1972年发表在《光学》（*Optik*）上，题为《一种从图像和衍射平面图片确定相位的实用算法》<sup>[1](https://labsites.rochester.edu/fienup/wp-content/uploads/2019/07/SPIE373_1981_RecSynthApplicITA.pdf)</sup>。探测器只记录波的振幅平方，因此相位——它编码了图像的大部分结构信息——在测量中丢失；该算法通过在两个平面之间交替并强制施加各自已知的振幅来恢复相位<sup>[2](https://math.ucdavis.edu/~fannjiang/home/papers/phase-numerics-reprint.pdf)</sup>。

| 关键事实 | 详情 |
|---|---|
| 原始发表 | R. W. 格尔希伯格与W. O. 萨克斯顿，《光学》35, 237 (1972)<sup>[1](https://labsites.rochester.edu/fienup/wp-content/uploads/2019/07/SPIE373_1981_RecSynthApplicITA.pdf)</sup> |
| 解决的问题 | 从两次强度测量——像平面和衍射平面图片——中恢复相位，如电子显微术和波前传感中的情形<sup>[3](https://pubmed.ncbi.nlm.nih.gov/20396114/)</sup> |
| 方法类型 | 在两个由傅里叶变换或自由空间传播连接的平面之间进行迭代变换（交替投影），在每个平面上用测量振幅进行替换<sup>[4](https://www.sciencedirect.com/science/chapter/bookseries/abs/pii/S1076567020300252)</sup><sup> • </sup><sup>[5](https://www.sciencedirect.com/science/article/pii/S0143816623002105)</sup> |
| 收敛性 | 已证明对双强度问题收敛；保证稳定性但收敛缓慢<sup>[3](https://pubmed.ncbi.nlm.nih.gov/20396114/)</sup><sup> • </sup><sup>[4](https://www.sciencedirect.com/science/chapter/bookseries/abs/pii/S1076567020300252)</sup> |
| 适用范围 | 适用于显微相位问题；菲努普算法将该框架推广到一般傅里叶相位问题<sup>[6](https://www.sciencedirect.com/science/article/pii/S0065253908603285)</sup> |
| 现代应用 | 计算机生成全息术、全息显示、光束整形、光镊、波前传感和傅里叶叠层成像显微术<sup>[7](https://arxiv.org/abs/2005.08623)</sup><sup> • </sup><sup>[8](https://www2.eecs.berkeley.edu/Pubs/TechRpts/2020/EECS-2020-36.pdf)</sup> |

## 相位问题

在相干成像中，复场由振幅和相位描述，但探测器记录的强度是振幅的平方。例如，在电磁学中大约1太赫兹以上，人们测量的是时间平均坡印廷矢量，它与电场模的平方成正比，因此相位无法直接获取<sup>[9](https://www.sciencedirect.com/science/article/pii/S0304399113001289)</sup>。由于相位编码了图像的大部分结构信息，仅从其傅里叶振幅恢复信号通常是病态的，这一问题出现在电子显微术、晶体学、天文学和光学成像等领域<sup>[2](https://math.ucdavis.edu/~fannjiang/home/papers/phase-numerics-reprint.pdf)</sup><sup> • </sup><sup>[10](https://opg.optica.org/abstract.cfm?uri=math-2017-MW2C.1)</sup>。该算法出现之时，一维情形下的基本模糊性已被理解，但二维或更高维的唯一性仍是一个开放问题<sup>[9](https://www.sciencedirect.com/science/article/pii/S0304399113001289)</sup>。后续研究表明，当二维图像带限时，任何存在的解几乎总是确定的，除了180度旋转、平移和乘以单位模复数的缩放<sup>[11](https://www.researchgate.net/publication/228871957_Optical_Wavefront_Reconstruction_Theory_and_Numerical_Methods)</sup>。

## 算法的工作原理

该方法是一种迭代变换方案：复波函数的估计值在两个数据平面之间反复进行傅里叶变换，在每个平面上将计算得到的振幅替换为测量振幅，而相位则自由演化<sup>[4](https://www.sciencedirect.com/science/chapter/bookseries/abs/pii/S1076567020300252)</sup>。在标准表述中，选取一个随机初始信号，计算其离散傅里叶变换，用测量值替换傅里叶振幅，取逆变换，并施加时域约束；此循环重复直至满足停止准则<sup>[12](https://www.weizmann.ac.il/math/yonina/sites/math.yonina/files/1510.07713v1.pdf)</sup>。

该过程是约束集之间交替投影的一种形式<sup>[8](https://www2.eecs.berkeley.edu/Pubs/TechRpts/2020/EECS-2020-36.pdf)</sup>。它适用于任何酉变换，具有收敛性证明和保证的稳定性，但收敛缓慢；早期旨在加速的变体在当时未能成功，尽管其他作者后来找到了可行的方案<sup>[4](https://www.sciencedirect.com/science/chapter/bookseries/abs/pii/S1076567020300252)</sup>。

## 收敛性质

密歇根环境研究所的光学相位恢复研究者J. R. 菲努普（J. R. Fienup）在1982年发表于《应用光学》（*Applied Optics*）的一项比较研究中表明，用于双强度测量的格尔希伯格–萨克斯顿算法收敛，且相关的用于单强度测量的误差缩减算法与最速下降法密切相关<sup>[3](https://pubmed.ncbi.nlm.nih.gov/20396114/)</sup>。然而收敛在原理上是有限的：投影在一个凸集（时域约束）和一个非凸集（傅里叶振幅约束）之间进行，因此迭代往往停留在局部极小值，即使数据无噪声，恢复效果也有限<sup>[12](https://www.weizmann.ac.il/math/yonina/sites/math.yonina/files/1510.07713v1.pdf)</sup>。由于这一原因，该算法及其变体的收敛性质尚未被完全理解，尽管大多数相关情形下的数值经验表明投影型算法能够达到正确解<sup>[11](https://www.researchgate.net/publication/228871957_Optical_Wavefront_Reconstruction_Theory_and_Numerical_Methods)</sup>。

## 首次演示

格尔希伯格和萨克斯顿首先在一般数学函数上演示了该技术，随后将其应用于磁性薄膜的数学模型<sup>[13](https://www.nature.com/articles/240404a0)</sup>。1972年12月，格尔希伯格在《自然》（*Nature*）上报告了在电子显微镜中成像的负染过氧化氢酶晶体的相位问题的成功求解，从衍射图片和像平面图片出发，在显微镜像平面上产生了完整的波函数图——包括相位和振幅<sup>[13](https://www.nature.com/articles/240404a0)</sup>。

## 变体与扩展

该算法已发展为一个方法家族。菲努普通过附加时域限制和投影步骤的变体扩展了交替投影框架，其中最流行的是混合输入–输出（HIO）算法，它增加了一个时域校正步骤以改善收敛性<sup>[12](https://www.weizmann.ac.il/math/yonina/sites/math.yonina/files/1510.07713v1.pdf)</sup>。杨–顾算法（Yang–Gu algorithm）将GS推广到求解任意线性酉或非酉变换系统中的一般振幅与相位恢复问题<sup>[14](https://doi.org/10.1364/AO.33.000209)</sup>。反馈控制模型已被引入GS以加速迭代过程，多图像恢复方案通过增加约束来改善收敛性<sup>[15](https://www.sciencedirect.com/science/article/pii/S0143816616300197)</sup>。加权变体如带相位控制的加权格尔希伯格–萨克斯顿算法（GSW-PC）能够以高衍射效率同时控制投影图案的相位和振幅，而经典算法仅约束投影图案的模<sup>[16](https://pmc.ncbi.nlm.nih.gov/articles/PMC5852266/)</sup>。

一个适用范围上的区分在实践中很重要：格尔希伯格–萨克斯顿算法适用于显微相位问题，即两个共轭平面上的强度均已知；而菲努普算法处理一般傅里叶相位问题，计算经验表明除非图像是正的，否则有用的解几乎无法获得<sup>[6](https://www.sciencedirect.com/science/article/pii/S0065253908603285)</sup>。

## 应用

**计算机生成全息术。** GS是计算显示在空间光调制器上的计算机生成全息图最常用的算法之一，空间光调制器是用全息信息调制光波前的器件<sup>[7](https://arxiv.org/abs/2005.08623)</sup><sup> • </sup><sup>[5](https://www.sciencedirect.com/science/article/pii/S0143816623002105)</sup>。基于它的数字全息术现已扩展到从增强现实到医学成像、增材制造、光刻、光镊和电信等领域<sup>[7](https://arxiv.org/abs/2005.08623)</sup>。在每次迭代中，复场在全息图平面和像平面之间来回变换，提取相位并将振幅归一化以形成纯相位全息图，然后用目标振幅替换重建振幅<sup>[17](https://www.nature.com/articles/s41377-022-00916-3)</sup>。该算法在此处有已知局限：它在相对平滑的问题上表现良好，如多级空间光调制器上的显示，但对二值空间光调制器无法收敛<sup>[7](https://arxiv.org/abs/2005.08623)</sup>。

**显微术与俘获。** 最初的傅里叶叠层成像显微术算法采用了格尔希伯格–萨克斯顿方法，在傅里叶域施加平移支撑约束，同时在图像域施加测量振幅约束<sup>[8](https://www2.eecs.berkeley.edu/Pubs/TechRpts/2020/EECS-2020-36.pdf)</sup>。在光镊中，该算法计算空间光调制器上所需的相位图案，以在焦平面上产生期望的强度分布，从而实现用于单原子俘获的全息微阱阵列<sup>[18](https://doi.org/10.1103/PhysRevX.4.021034)</sup>。基于GS的迭代相位恢复还被应用于定量相位显微术、亚100纳米分辨率的X射线显微术和图像加密<sup>[15](https://www.sciencedirect.com/science/article/pii/S0143816616300197)</sup>。

## 遗产

1972年的论文开启了迭代相位恢复方法长达四十年的发展历程，这些方法支撑了相干衍射成像——即用相干波照射物体并测量远场衍射强度<sup>[12](https://www.weizmann.ac.il/math/yonina/sites/math.yonina/files/1510.07713v1.pdf)</sup>。它还激发了对衍射层析成像和从散射场数据恢复折射率分布的傅里叶空间方法的相关研究，并加深了人们对图像重建中傅里叶数据的采样策略和插值的兴趣<sup>[9](https://www.sciencedirect.com/science/article/pii/S0304399113001289)</sup>。在该算法提出四十多年后，格尔希伯格和萨克斯顿的误差缩减算法及其菲努普改进仍然是相位恢复问题许多变体的热门选择<sup>[19](https://arxiv.org/abs/1306.0160)</sup>。

## References

1. [R. W. Gerchberg and W. O. Saxton, "A practical algorithm for the determination of phase from image and diffraction plane pictures," Optik 35, 237 (1972), cited in Fienup's SPIE paper](https://labsites.rochester.edu/fienup/wp-content/uploads/2019/07/SPIE373_1981_RecSynthApplicITA.pdf)
2. [A. Fannjiang and T. Strohmer, "The numerics of phase retrieval" (reprint)](https://math.ucdavis.edu/~fannjiang/home/papers/phase-numerics-reprint.pdf)
3. [J. R. Fienup, "Phase retrieval algorithms: a comparison," Applied Optics 21, 2758 (1982)](https://pubmed.ncbi.nlm.nih.gov/20396114/)
4. ["The image and diffraction plane problem: numerical methods," Advances in Imaging and Electron Physics 214 (2020)](https://www.sciencedirect.com/science/chapter/bookseries/abs/pii/S1076567020300252)
5. ["Double phase computer generated on-axis multiplane holograms," Optics and Lasers in Engineering (2023)](https://www.sciencedirect.com/science/article/pii/S0143816623002105)
6. ["The Status of Practical Fourier Phase Retrieval," Methods in Experimental Physics](https://www.sciencedirect.com/science/article/pii/S0065253908603285)
7. ["Benchmarking the Gerchberg-Saxton Algorithm," arXiv:2005.08623 (2020)](https://arxiv.org/abs/2005.08623)
8. ["Optimization Analysis for Fourier Ptychographic Phase Microscopy," EECS Technical Report EECS-2020-36, UC Berkeley](https://www2.eecs.berkeley.edu/Pubs/TechRpts/2020/EECS-2020-36.pdf)
9. [M. A. Fiddy and U. Shahid, "Legacies of the Gerchberg–Saxton algorithm," Ultramicroscopy (2013)](https://www.sciencedirect.com/science/article/pii/S0304399113001289)
10. [Y. Eldar, "Phase Retrieval in Optical Imaging," Imaging and Applied Optics 2017, OSA Technical Digest, paper MW2C.1](https://opg.optica.org/abstract.cfm?uri=math-2017-MW2C.1)
11. ["Optical Wavefront Reconstruction: Theory and Numerical Methods"](https://www.researchgate.net/publication/228871957_Optical_Wavefront_Reconstruction_Theory_and_Numerical_Methods)
12. [Y. Shechtman, Y. C. Eldar, O. Cohen, H. N. Chapman et al., "Phase Retrieval: An Overview of Recent Developments," arXiv:1510.07713](https://www.weizmann.ac.il/math/yonina/sites/math.yonina/files/1510.07713v1.pdf)
13. [R. Gerchberg, "Holography without Fringes in the Electron Microscope," Nature 240, 404–406 (1972)](https://www.nature.com/articles/240404a0)
14. ["Gerchberg–Saxton and Yang–Gu algorithms for phase retrieval in a nonunitary transform system: a comparison," Applied Optics 33, 209 (1994)](https://doi.org/10.1364/AO.33.000209)
15. ["A review of iterative phase retrieval for measurement and encryption," Optics and Lasers in Engineering (2016)](https://www.sciencedirect.com/science/article/pii/S0143816616300197)
16. ["Phase-controlled, speckle-free holographic projection with applications in precision optogenetics," (2018)](https://pmc.ncbi.nlm.nih.gov/articles/PMC5852266/)
17. ["Review of computer-generated hologram algorithms for color dynamic holographic three-dimensional display," Light: Science & Applications (2022)](https://www.nature.com/articles/s41377-022-00916-3)
18. ["Single-Atom Trapping in Holographic 2D Arrays of Microtraps with Arbitrary Geometries," Physical Review X 4, 021034 (2014)](https://doi.org/10.1103/PhysRevX.4.021034)
19. ["Phase Retrieval using Alternating Minimization," arXiv:1306.0160](https://arxiv.org/abs/1306.0160)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 11, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 物理学 › 经典物理学 › Waves and optics › Physical and wave optics › Fourier optics and imaging › Phase retrieval and wavefront sensing

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/gerchberg-saxton-algorithm

English original: https://www.edgepedia.org/gerchberg-saxton-algorithm
