# Recovering low spatial frequencies in wavefront sensing based on intensity measurements

- Amin Parvizi
^{1}Email author, - Wouter Van den Broek
^{1, 2}and - Christoph T. Koch
^{1}

**2**:3

**DOI: **10.1186/s40679-016-0017-y

© Parvizi et al. 2016

**Received: **2 January 2016

**Accepted: **9 March 2016

**Published: **22 March 2016

## Abstract

The transport of intensity equation (TIE) offers a convenient method to retrieve the phase of a wave function from maps of the irradiance (images) recorded at different planes along the optic axis of an optical system. However, being a second-order partial differential equation, even for noise-free data a unique solution of the TIE requires boundary conditions to be specified which are generally not accessible experimentally, jeopardizing retrieval of the low-frequency information in particular. Here we introduce an iterative algorithm which forgoes the need for explicit boundary conditions and combines the well-known reciprocal space solution of the TIE with the charge-flipping algorithm that has originally been developed to solve the crystallographic phase problem in X-ray diffraction. Application of this algorithm to experimental data and comparison with conventionally used algorithms demonstrates an improved retrieval of the low spatial frequencies of the phase.

### Keywords

Transport of intensity equation Boundary condition Gradient-flipping algorithm## Background

Wavefront sensing, i.e., the detection of relative phase shifts in propagating waves provides essential information in imaging applications where the scattering process affects the phase of the probing wave. Examples which highlight the importance of being able to detect phase shifts of waves passing through transparent objects include imaging of unstained cells under the optical microscope and imaging of soft matter (e.g., DNA, viruses, proteins and other macromolecules, polymers, etc.) in the transmission electron microscope (TEM). In 1953, Frits Zernike received the Nobel Prize in Physics for the development of phase contrast microscopy, a technique which allows part of the phase information carried by a wave to be converted into an amplitude signal, making it detectable as part of the intensity variations in the image. In 1971, Dennis Gabor received the Nobel Prize in Physics for developing the holographic principle [1], a technique by which the phase of a wave could be extracted by post-processing images. Later, iterative [2, 3] and deterministic [4–7] mathematical formulations and associated computer algorithms were developed by which both phase and amplitude of a wave could be recovered from intensity measurements at different planes along the optic axis, a so-called focal series.

One very popular approach toward wavefront reconstruction from intensity measurements at different planes of focus is the transport of intensity equation (TIE) [5, 8] which, due to its simple mathematical formulation and straightforward computational implementation, has attracted much attention in research communities as diverse as cold atom clouds [9], digital optical holography [10], and medical X-ray imaging [11].

Many algorithms such as the fast Fourier transform [6], the finite element method [12, 13], multigrid methods [14], a special symmetrization approach [15], each requiring Neumann, Dirichlet, or periodic boundary conditions have been proposed and applied for solving the TIE.

For wavefront reconstruction from focal series of images, the high spatial frequency components of the phase are well-defined by the data, but the low spatial frequency components are largely determined by the boundary conditions, which are usually unknown. Gureyev et al. [16, 17] and later Zuo et al. [18] introduced hard-edge apertures or, more generally non-uniform illumination during the experiment and thus physically enforced Neumann boundary conditions, allowing orthogonal series expansion-based approaches to be used to solve the TIE. Such an approach to make the boundary conditions physically accessible may be feasible in some setups, but not generally. In the TEM, for example, the field of view is often so small that no aperture with perfectly abrupt edges exists, in particular not at atomic resolution.

There have been attempts to improve the recovery of low spatial frequency information in the context of the TIE by reformulating it as a total-variation optimization problem, [19, 20]; however, these approaches require a piecewise constant phase. Other approaches include the application of structured illumination [21]; the experimentally much more complicated interferometric setup [22]; or prior knowledge of the measurement variation [23]. Therefore the problem of faithfully recovering low spatial frequency components of arbitrarily shaped phases remains, at least for a very large range of applications of wave front sensing.

In this work, we propose a simple iterative algorithm, gradient flipping (GF), with an emphasis on objects that are non-periodic and non-piecewise linear. GF imposes sparsity on the gradient of the phase by either driving a certain percentage of the phase gradient to zero, or forcing all phase gradients below a certain positive threshold to zero. By combining the conventional Fourier method to solve the TIE with principles adapted from the charge-flipping algorithm in crystallography, GF determines boundary conditions on the phase, while preserving consistency with the higher frequencies of the experimental data.

In this research work, first the TIE and its conventional Fourier solution are introduced; then, the gradient-flipping algorithm is presented and it is demonstrated with simulations that the GF algorithm retrieves the boundaries and low spatial frequencies of two test objects. Furthermore, experimental results on a fly wing are presented in the experiment section; and, finally, conclusions are drawn.

## The transport of intensity equation

*k*denotes the wave number of the incident radiation, and \(\vec {r}_\bot\) is a vector in the plane normal to the optic axis. \(\frac{\partial I\left( \vec {r}\right) }{\partial z}\) denotes the variation of intensity along the optical axis

*z*. This quantity is most often approximated by the simple first-order finite difference approximation

This expression is straightforward to implement computationally, since it makes the expression (3) fully deterministic. However, using discrete Fourier transforms periodic boundary conditions are implicitly imposed. Also for iterative approaches, such as finite element [12, 13] or multigrid [27] methods the boundary conditions must be specified and are often chosen to either be periodic, or of the Neumann type, or even both [27].

## Gradient flipping

Gradient flipping (GF), is based on the charge-flipping (CF) algorithm which was originally developed for X-ray crystallography [30] where it is very effective in finding sparse solutions of the charge density consistent with experimental diffraction data.

GF pads the input data \(I(\vec {r})\) with its mean value so that the padded image is twice as large along each of its two dimensions as the original image [31]. Also \(\partial I\left( \vec {r}\right) / \partial z\) is padded to the same size, with zeros around its perimeter. The data in the padded area are then iteratively updated such that the phase gradient within the area corresponding to the measurement either has a certain percentage driven to zero, or has the gradient in all pixels the absolute value of which is below a certain positive threshold minimized.

*h*is defined in reciprocal space as

*h*acts as a Gaussian low-pass filter for the flipped gradient \(\vec {G}'(\vec {r})\) with a characteristic length of \(2 \pi R_{LP}\). This updating rule thus preserves the high spatial frequencies from the measurements, which are generally well-defined by the experiments, and lets the low-frequency information, which is only weakly present in the measurements, be dictated by the gradient flipping.

### Free parameters* δ* and* R*
_{
LP
}

*h*in (8), \(R_{LP}\), is the second free parameter in the proposed algorithm and is determined entirely from the experimental data by setting it to the value that minimizes \(\chi ^2\) in (10). The \(\chi ^2\) figure-of-merit is defined as,

*z*being summed over all the under- and over-focus at which the experimental images have been recorded, and

*x*and

*y*span the area of those images. Furthermore, \(I^\mathrm{{sim.}}(\vec {r}_\bot ,R_{LP})\) are the images simulated from the phase \(\varphi (\vec {r},R_{LP})\) that has been reconstructed with \(R_{LP}\) and the amplitude \(A(\vec {r}) = \sqrt{I(\vec {r},z=0)}\). \(I^\mathrm{{exp.}}\left( \vec {r},z\right)\) denotes the experimental data.

## Simulations

In this section the performance of GF is demonstrated on simulations of two specimens: the projection of a cube and a L-shaped membrane.

### Projected cube

### L-shaped membrane

For this reconstruction the parameter \(\delta\) has been set such that the number of pixels being flipped corresponded to one quarter of the total number of the pixels in the field of view. And \(R_{LP}\) has chosen to be 34.52 μm by minimizing \(\chi ^2\).

## Experiment

*r*in front of the first lens, with \(f<r<2f\). The diaphragm was placed at the back focal plane of the first lens in order to limit the numerical aperture of the system to about 0.1. Images at the three focal planes \(z=-\Delta z\), \(z=0\), and \(z=+\Delta z\) were acquired by translating the camera along the optic axis with a defocus step of \(\Delta z = 1\) mm.

- Step 1:
Shift \(I(\vec {r},+\Delta z)\) to the position of the maximum of the cross correlation of that image with \(2 I(\vec {r})-I(\vec {r},-\Delta z)\), and

- Step 2:
Shift \(I(\vec {r},-\Delta z)\) to the position of the maximum of the cross correlation of that image with \(2 I(\vec {r})-I(\vec {r},+\Delta z)\),

All three phase maps shown in Fig. 10 are consistent with the experimental data, but the applied boundary conditions differ. The reconstructed phase maps shown in Fig. 10a, b are unphysical, because in both cases the phase shift inside the wing drops below the phase shift in the empty area. The FFT reconstruction shown in Fig. 10a also features a severe overall phase slope in the empty area which cannot be deemed physical.

The line profiles across the reconstructed phase maps show good agreement between the three different reconstruction results for fine details, but they also highlight the large differences at low spatial frequencies.

## Conclusion

In this work, we proposed a simple iterative algorithm, gradient flipping (GF), which imposes sparsity on the phase gradient by either driving a certain percentage of values to zero, or forcing all values below a certain positive threshold to zero. By combining the conventional Fourier method with these principles adapted from the charge-flipping algorithm in crystallography, GF determines boundary conditions on the phase, while preserving consistency with the higher frequencies of the experimental data.

It was shown with simulations and experiments of non-periodic and non-piecewise linear objects that these boundary conditions contribute to GF’S much improved lower spatial frequencies compared to that of the more conventional FFT method and symmetrization method.

## Declarations

### Authors’ contributions

AP carried out the experimental demonstration as well as reconstruction algorithm and drafted the manuscript. WB improved the theory behind the reconstruction algorithm and helped to draft the manuscript. CTK wrote the reconstruction algorithm and finalized the manuscript. All authors read and approved the final manuscript.

### Acknowledgements

The authors acknowledge funding from the Carl Zeiss Foundation.

### Competing interests

The authors declare that they have no competing interests.

**Open Access**This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.

## Authors’ Affiliations

## References

- Gabor, D., et al.: A new microscopic principle. Nature
**161**(4098), 777–778 (1948)View ArticleGoogle Scholar - Gerchberg, R.W., Saxton, W.O.: A practical algorithm for the determination of the phase from image and diffraction plane pictures. Optik
**35**, 237–246 (1972)Google Scholar - Kirkland, E.J.: Improved high resolution image processing of bright field electron micrographs: I. theory. Ultramicroscopy
**15**(3), 151–172 (1984)View ArticleGoogle Scholar - P. Schiske. Zur Frage der Bildrekonstruktion durch Fokusreihen. In Proc. 4th Europ. Congr. on Electron Microscopy, Rome, Vol. 1, pages 145–146, 1968Google Scholar
- Michael, T.R.: Deterministic phase retrieval: a green’s function solution. J. Opt. Soc. Am.
**73**(11), 1434–1441 (1983)View ArticleGoogle Scholar - Paganin, D., Nugent, K.A.: Noninterferometric phase imaging with partially coherent light. Phys. Rev. Lett.
**80**, 2586–2589 (1998)View ArticleGoogle Scholar - Van Dyck, D., Op de Beeck, M., Coene, W.: A new approach to object wave function reconstruction in electron microscopy. Optik
**93**, 103–107 (1993)Google Scholar - Streibl, Norbert: Phase imaging by the transport equation of intensity. Opt. Commun.
**49**(1), 6–10 (1984)View ArticleGoogle Scholar - Sheludko, D.V., McCulloch, A.J., Jasperse, M., Quiney, H.M., Scholten, R.E.: Non-iterative imaging of inhomogeneous cold atom clouds using phase retrieval from a single diffraction measurement. Opt. Expr.
**18**(2), 1586–1599 (2010)View ArticleGoogle Scholar - Zuo, Chao, Chen, Qian, Weijuan, Qu, Asundi, Anand: Direct continuous phase demodulation in digital holography with use of the transport-of-intensity equation. Opt. Commun.
**309**, 221–226 (2013)View ArticleGoogle Scholar - Leong, A.F., Paganin, D.M., Hooper, S.B., Siew, M.L., Kitchen, M.J.: Measurement of absolute regional lung air volumes from near-field x-ray speckles. Opt. Expr.
**21**(23), 27905–27923 (2013)View ArticleGoogle Scholar - Lubk, Axel, Guzzinati, Giulio, Börrnert, Felix, Verbeeck, Jo: Transport of intensity phase retrieval of arbitrary wave fields including vortices. Phys. Rev. Lett.
**111**(17), 173902 (2013)View ArticleGoogle Scholar - Parvizi, A., Müller, J., Funken, S.A., Koch, C.T.: A practical way to resolve ambiguities in wavefront reconstructions by the transport of intensity equation. Ultramicroscopy
**154**, 1–6 (2015)View ArticleGoogle Scholar - Gureyev, T.E., Raven, C., Snigirev, A., Snigireva, I., Wilkins, S.W.: Hard x-ray quantitative non-interferometric phase-contrast microscopy. J. Phys. D: Appl. Phys.
**32**(5), 563 (1999)View ArticleGoogle Scholar - Volkov, V.V., Zhu, Y., De Graef, M.: A new symmetrized solution for phase retrieval using the transport of intensity equation. Micron
**33**(5), 411–416 (2002)View ArticleGoogle Scholar - Gureyev, T.E., Roberts, A., Nugent, K.A.: Phase retrieval with the transport-of-intensity equation: matrix solution with use of zernike polynomials. JOSA A
**12**(9), 1932–1941 (1995)View ArticleGoogle Scholar - Gureyev, T.E., Nugent, K.A.: Phase retrieval with the transport-of-intensity equation. ii. orthogonal series solution for nonuniform illumination. JOSA A
**13**(8), 1670–1682 (1996)View ArticleGoogle Scholar - Zuo, C., Chen, Q., Asundi, A.: Boundary-artifact-free phase retrieval with the transport of intensity equation: fast solution with use of discrete cosine transform. Opt. Expr.
**22**(8), 9220–9244 (2014)View ArticleGoogle Scholar - Tian, L., Petruccelli, J.C., Barbastathis, G.: Nonlinear diffusion regularization for transport of intensity phase imaging. Opt. Lett.
**37**(19), 4131–4133 (2012)View ArticleGoogle Scholar - Kostenko, A., Batenburg, K.J., Suhonen, H., Offerman, S.E., Vliet, L.J.: Phase retrieval in in-line x-ray phase contrast imaging based on total variation minimization. Opt. Expr.
**21**(1), 710–723 (2013)View ArticleGoogle Scholar - Zhu, Y., Shanker, A., Tian, L., Waller, L., Barbastathis, G.: Low-noise phase imaging by hybrid uniform and structured illumination transport of intensity equation. Opt. Expr.
**22**, 26696–26711 (2014)View ArticleGoogle Scholar - Ozsoy-Keskinbora, C., Boothroyd, C.B., Dunin-Borkowski, R.E., van Aken, P.A., Koch, C.T.: Hybridization approach to in-line and off-axis (electron) holography for superior resolution and phase sensitivity. Scientific. Rep. 4, (2014)Google Scholar
- Jingshan, Z., Claus, R.A., Dauwels, J., Tian, L., Waller, L.: Transport of intensity phase imaging by intensity spectrum fitting of exponentially spaced defocus planes. Opt. Exp.
**22**(9), 10661 (2014)View ArticleGoogle Scholar - Jelena A Schmalz, Timur E Gureyev, David M Paganin, and Konstantin M Pavlov. Phase retrieval using radiation and matter-wave fields: Validity of teague’s method for solution of the transport-of-intensity equation. Phys. Rev. A, 84(2):023808, 2011Google Scholar
- Petersen, T.C., Keast, V.J., Johnson, K., Duvall, S.: Tem-based phase retrieval of p-n junction wafers using the transport of intensity equation. Philos. Mag.
**87**, 3565–3578 (2007)View ArticleGoogle Scholar - Waller, L., Luo, Y., Yang, S.Y., Barbastathis, G.: Transport of intensity phase imaging in a volume holographic microscope. Opt. Lett.
**35**(17), 2961–2963 (2010)View ArticleGoogle Scholar - Allen, L.J., Oxley, M.P.: Phase retrieval from series of images obtained by defocus variation. Opt. Commun.
**199**(1), 65–75 (2001)View ArticleGoogle Scholar - Zheng, S., Xue, B., Xue, W., Bai, X., Zhou, F.: Transport of intensity phase imaging from multiple noisy intensities measured in unequally-spaced planes. Opt. Expr.
**20**(2), 972–985 (2012)View ArticleGoogle Scholar - Pinhasi, S.V., Alimi, R., Perelmutter, L., Eliezer, S.: Topography retrieval using different solutions of the transport intensity equation. J. Opt. Soc. Am. A
**27**, 2285–2292 (2010)View ArticleGoogle Scholar - Oszlányi, Gábor, Suto, Andras: The charge flipping algorithm. Acta Crystallographica Section A: Foundations of Crystallography
**64**(1), 123–134 (2007)View ArticleGoogle Scholar - Ophus, Colin, Ewalds, Timo: Guidelines for quantitative reconstruction of complex exit waves in HRTEM. Ultramicroscopy
**113**, 88–95 (2012)View ArticleGoogle Scholar