원시데이터 수집 시스템
선정목록으로

Removal of algorithmic stagnation by augmented iterative phase retrieval

관련 필름·전자재료 · (13) 프리즘 필름

기본 정보

저자
  1. Areeba Fatima — School of Physics and Astronomy, University of Glasgow, Glasgow G12 8QQ, UK
  2. Daniele Faccio — School of Physics and Astronomy, University of Glasgow, Glasgow G12 8QQ, UK
DOI
10.1364/oe.520066
저널
Optics Express
발행년도
2024
발행기관
Optica Publishing Group
피인용수
3
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
http://dx.doi.org/10.1364/oe.520066
토픽
Electron and X-Ray Spectroscopy Techniques
OpenAlex ID
W4393565556

평가 내용

관련도
관련
사업분야
필름·전자재료 · (13) 프리즘 필름
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '필름·전자재료 > 프리즘 필름' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Retrieving the phase of an optical field using intensity measurements is one of the most widespread and studied inverse problems in classical optics. However, common iterative approaches such as the Gerchberg-Saxton algorithm and its derivatives suffer from the twin-image problem - the iterative minimisation stagnates and the recovered field contains features from both the target field and its point-reflection. We present a technique that leverages mathematical properties of the stagnated field, to constrain the problem and remove the twin image artefacts. This improvement in reconstruction robustness has implications in a range of fields, including applications in adaptive optics, holography and optical communications.

본문 38,435자

본문 펼치기
Research Article Vol. 32, No. 9 / 22 Apr 2024 / _Optics Express_ 16016 # Removal of algorithmic stagnation by augmented iterative phase retrieval AREEBA FATIMA <sup>*</sup> AND DANIELE FACCIO _School of Physics and Astronomy, University of Glasgow, Glasgow G12 8QQ, UK_ _*areeba.fatima@glasgow.ac.uk_ Abstract: Retrieving the phase of an optical field using intensity measurements is one of the most widespread and studied inverse problems in classical optics. However, common iterative approaches such as the Gerchberg-Saxton algorithm and its derivatives suffer from the twin-image problem – the iterative minimisation stagnates and the recovered field contains features from both the target field and its point-reflection. We present a technique that leverages mathematical properties of the stagnated field, to constrain the problem and remove the twin image artefacts. This improvement in reconstruction robustness has implications in a range of fields, including applications in adaptive optics, holography and optical communications. Published by Optica Publishing Group under the terms of the Creative Commons [Attribution](https://creativecommons.org/licenses/by/4.0/) 4.0 License. Further distribution of this work must maintain attribution to the author(s) and the published article’s title, journal citation, and DOI. 1. Introduction Determining the phase of the optical field remains one of the most challenging problems in classical optics. These kinds of problems are ubiquitous in various imaging applications: coherent diffraction imaging (CDI), astronomical imaging, wavefront sensing, optical communications, fluorescence tomography reconstruction among others [1–5]. Common approaches to retrieving the phase use either interferometric methods that involve recording an interferogram with a reference beam or non-interferometric methods wherein iterative algorithms are commonly used to derive the phase information from intensity measurements. For the second category of methods, the Gerchberg-Saxton (G-S) algorithm [6,7] and its off-shoots such as the hybrid-input output (HIO) algorithm and the Error-reduction (ER) algorithm [8–10] are well-known approaches. Recently, machine learning approaches have also been widely adopted to retrieve phase information from intensity-only measurements [11,12]. Despite the success of these approaches, they do require large amounts of data to train a neural network and they can be susceptible to hallucinations i.e. the appearance of features in the final image that can be loosely understood as artefacts due to a mismatch between the training dataset and the actual image. For this reason, there is still interest in the development of robust inverse retrieval methods. Although the main algorithms offer minimal computational complexity, they aim at solving a nonlinear and a highly ill-posed inverse problem. There are inherent ambiguities associated with phase retrieval that prevent the iterative methods from converging to the correct solution. Non-uniqueness arises from the fact that shifted phases, added global phase and mirrored phases can give multiple solutions to a given phase reconstruction problem [13,14]. In particular, the complex-valued function _g_ ( _x_, _y_ ) and its mirrored conjugate function _g_ <sup>∗</sup> (− _x_, − _y_ ) both have the same Fourier magnitude, and can be reconstructed with equal probability in any run of HIO algorithm initiated by a random phase guess. In an another possible outcome, the reconstructed image shows features of both the ground truth _g_ ( _x_, _y_ ) and its twin-image _g_ <sup>∗</sup> (− _x_, − _y_ ). This is referred to as the stagnated mode, it is not trivial to escape it and it most commonly occurs when the object has centrosymmetric support [14]. In one of the methods to overcome this, truncating the object support to a non-centrosymmetric window is employed for the first few iterations. This helps one of the two solutions to dominate. The algorithm subsequently #520066 https://doi.org/10.1364/OE.520066 Journal © 2024 Received 26 Jan 2024; revised 7 Mar 2024; accepted 28 Mar 2024; published 16 Apr 2024 Research Article Vol. 32, No. 9 / 22 Apr 2024 / _Optics Express_ 16017 switches to the full support which allows convergence to either the upright or the twin image [13]. Alternatively, the reduction of the total variation for the complex-valued function _g_ ( _x_, _y_ ) in a few sub-iterations of the standard HIO algorithm can also help overcome stagnation and yield either of the twin images [15,16]. In most of the existing literature however, reconstruction of either the upright _g_ ( _x_, _y_ ) or the twin image _g_ <sup>∗</sup> (− _x_, − _y_ ) is accepted as the solution of the phase retrieval problem and the problem of retrieval of the actually correct image is not addressed. Moving away from these approaches where phase recovery algorithms use single shot Fourier intensity measurements, algorithms based on multiple intensity measurements help curb the issue of non-uniqueness up to a large extent. It has been shown that a series of overlapping diffraction patterns measured by scanning an aperture over the object wave function can lead to overcoming the ambiguity in the phase retrieval. [17]. The diverse measurements could also be for example defocussed intensities or an added intensity measurement taken with a spiral phase placed in the path of the target phase [18,19]. However, the requirement for multiple measurements can introduce experimental complexities or may prove infeasible when the object changes its configuration before the different measurements can be made. Guo _et al_ . proposed perturbing the phase guess in the object domain at each iteration, with a random spatial phase map whose value decreases linearly to escape the stagnation [20]. It has been known that the non-uniqueness is more pronounced for one-dimensional objects [13]. Numerical and theoretical studies show that the Gerchberg-Saxton method applied to non-classical state of light measurements (i.e. photon correlation measurements) can yield unique reconstructions for one-dimensional object which is attributed to a larger Hilbert space that well constrains the algorithm [21]. However, photon correlation measurements for higher number of photons/modes can make the practical realization of this method challenging. In this work, we address the problem of removing the twin-image ambiguity for phase recovery problems based on single-shot Fourier intensity measurements. We demonstrate that the mathematical properties of the stagnated solution obtained in any run of a typical HIO algorithm can be leveraged to remove the stagnation. 2. Superposed phase from stagnated image We assume the complex transmittance of an optically thin object is given by: (1) _g_ ( _x_, _y_ ) = _A_ ( _x_, _y_ ) _e_ <sup>_i_</sup> <sup>φ(</sup> <sup>_x_</sup> <sup>,</sup> <sup>_y_</sup> <sup>)</sup> Here, _A_ ( _x_, _y_ ) is the amplitude (or modulus) response and ϕ( _x_, _y_ ) is the phase response. If this object is illuminated by a coherent field denoted by _U_ ( _x_, _y_ ), then the measurement _O_ ( _fx_, _fy_ ) registered by a detector placed in the Fourier plane is given by: _O_ ( _fx_, _fy_ ) = | _F_ [ _U_ ( _x_, _y_ ) _g_ ( _x_, _y_ )]| <sup>2</sup> (2) Here _F_ [.] denotes the Fourier transform operation. For our analysis, we assume weakly absorbing objects, hence _A_ ( _x_, _y_ ) is unity. The illumination is considered to be normally incident uniform illumination, such that _U_ ( _x_, _y_ ) = 1. Under these approximations then, and denoting the Fourier magnitude as | _G_ ( _fx_, _fy_ )|, we can write: (3) _O_ ( _fx_, _fy_ ) = | _F_ [ _e_ <sup>_i_</sup> <sup>φ(</sup> <sup>_x_</sup> <sup>,</sup> <sup>_y_</sup> <sup>)</sup> ]| <sup>2</sup> = | _G_ ( _fx_, _fy_ )| <sup>2</sup> The phase retrieval problem involves finding the phase function ϕ( _x_, _y_ ), given the measurement _O_ ( _fx_, _fy_ ). The G-S/HIO and related algorithms aim to solve this iteratively by propagating the guess phase back and forth between the Fourier and the image domain where we alternately enforce the magnitude constraint and any _a priori_ constraints in the two respective domains. In any run of G-S/HIO algorithm, it often happens that the solution may stagnate at a linear combination of the function _g_ ( _x_, _y_ ) and its twin _g_ <sup>∗</sup> (− _x_, − _y_ ). The algorithm fails to move the Research Article Vol. 32, No. 9 / 22 Apr 2024 / _Optics Express_ 16018 solution beyond the stagnation point for further iterations and hinders the reconstruction of the correct phase. However, these stagnated images show an interesting feature: the phase corresponding to the stagnated function when rotated by 180 <sup>◦</sup> (i.e. subjected to point reflection) and subtracted from itself gives a function which is equal to the linear combination of the ground truth phase and its point-reflected version. We can show this analytically. Based on the phenomenological observation that the stagnated image is composed of a superposition of the image and its twin (and that both are identifiable), we can then write the stagnated complex valued function _s_ ( _x_, _y_ ) in the near field as a convex combination of the two: (4) _s_ ( _x_, _y_ ) = _te_ <sup>_i_</sup> <sup>φ(</sup> <sup>_x_</sup> <sup>,</sup> <sup>_y_</sup> <sup>)</sup> + (1 − _t_ ) _e_ <sup>−</sup> <sup>_i_</sup> <sup>φ(−</sup> <sup>_x_</sup> <sup>,−</sup> <sup>_y_</sup> <sup>)</sup> The phase α( _x_, _y_ ) corresponding to this stagnated field is given by: α( _x_, _y_ ) = arctan <sup>_<u>t</u>_</sup> <sup><u>sin ϕ(</u></sup> <sup>_<u>x</u>_</sup> <sup><u>,</u></sup> <sup>_<u>y</u>_</sup> <sup><u>) −(1 −</u></sup> <sup>_<u>t</u>_</sup> <sup><u>) sin ϕ(−</u></sup> <sup>_<u>x</u>_</sup> <sup><u>, −</u></sup> <sup>_<u>y</u>_</sup> <sup><u>)</u></sup> _t_ cos ϕ( _x_, _y_ ) + (1 − _t_ ) cos ϕ(− _x_, − _y_ ) (5) <sup>_<u>t</u>_</sup> <sup><u>sin ϕ(</u></sup> <sup>_<u>x</u>_</sup> <sup><u>,</u></sup> <sup>_<u>y</u>_</sup> <sup><u>) −(1 −</u></sup> <sup>_<u>t</u>_</sup> <sup><u>) sin ϕ(−</u></sup> <sup>_<u>x</u>_</sup> <sup><u>, −</u></sup> <sup>_<u>y</u>_</sup> <sup><u>)</u></sup> _t_ cos ϕ( _x_, _y_ ) + (1 − _t_ ) cos ϕ(− _x_, − _y_ ) The phase corresponding to the rotated stagnated field can then be represented as: α(− _x_, − _y_ ) = arctan <sup>_<u>t</u>_</sup> <sup><u>sin ϕ(−</u></sup> <sup>_<u>x</u>_</sup> <sup><u>, −</u></sup> <sup>_<u>y</u>_</sup> <sup><u>) −(1 −</u></sup> <sup>_<u>t</u>_</sup> <sup><u>) sin ϕ(</u></sup> <sup>_<u>x</u>_</sup> <sup><u>,</u></sup> <sup>_<u>y</u>_</sup> <sup><u>)</u></sup> _t_ cos ϕ(− _x_, − _y_ ) + (1 − _t_ ) cos ϕ( _x_, _y_ ) (6) <sup>_<u>t</u>_</sup> <sup><u>sin ϕ(−</u></sup> <sup>_<u>x</u>_</sup> <sup><u>, −</u></sup> <sup>_<u>y</u>_</sup> <sup><u>) −(1 −</u></sup> <sup>_<u>t</u>_</sup> <sup><u>) sin ϕ(</u></sup> <sup>_<u>x</u>_</sup> <sup><u>,</u></sup> <sup>_<u>y</u>_</sup> <sup><u>)</u></sup> _t_ cos ϕ(− _x_, − _y_ ) + (1 − _t_ ) cos ϕ( _x_, _y_ ) Subtracting these two phases, followed by algebraic manipulations, gives: α( _x_, _y_ ) − α(− _x_, − _y_ ) = tan <sup>−1</sup> (︃ cossin((ϕϕ(( _<u>xx</u>_ <u>,,</u> _<u>y y</u>_ <u>) −) −</u> <u>ϕϕ(−(−</u> _<u>xx</u>_ <u>,, − −</u> _<u>yy</u>_ <u>))))</u> cos(ϕ( _x_, _y_ ) − ϕ(− _x_, − _y_ )) )︃ (7) = ϕ( _x_, _y_ ) − ϕ(− _x_, − _y_ ), ϕ( _x_, _y_ ) ∈[0, π/2] (8) We point out that the above analysis is independent of the value of the weight _t_ used to represent the stagnated image in Eq. (4), implying that the degree to which the twin image is present does not affect the evaluation of the superposed phase. Our proposal is that this superposed phase can be used as an added information to guide the convergence of the iterative phase retrieval algorithm towards a meaningful solution. As a side note, we point out that Eq. (4) is in keeping with Ref. [14] where the authors pointed out that the Fourier domain divides into two types of regions: in some, the phase α( _x_, _y_ ) associated with _G_ ( _fx_, _fy_ ) (and hence _g_ ( _x_, _y_ ) in the object domain) is approximately retrieved and in the second type, the phase −α( _x_, _y_ ) associated with _G_ <sup>∗</sup> ( _fx_, _fy_ ) (and hence corresponding to _g_ <sup>∗</sup> (− _x_, − _y_ ) in the object domain) is retrieved. Here we then express this recovered solution in the Fourier domain as: (9) _S_ ( _fx_, _fy_ ) = _G_ ( _fx_, _fy_ ) _M_ 1( _fx_, _fy_ ) + _G_ <sup>∗</sup> ( _fx_, _fy_ ) _M_ 2( _fx_, _fy_ ) Here _M_ 1( _fx_, _fy_ ) and _M_ 2( _fx_, _fy_ ) are the two binary masks that have the value 1 in the domain where the upright image and the flipped image is present, respectively (and hence complement of each other). Inverse Fourier transforming this to get the expression for the stagnated field in the object domain gives: (10) _s_ ( _x_, _y_ ) = _g_ ( _x_, _y_ ) ∗ _m_ 1( _x_, _y_ ) + _g_ <sup>∗</sup> (− _x_, − _y_ ) ∗ _m_ 2( _x_, _y_ ) Here ∗ represents convolution. Reference [14] shows that in all the examples considered, these two regions, _M_ 1( _fx_, _fy_ ) and _M_ 2( _fx_, _fy_ ) largely form two well-separated, and large areas in the Fourier domain. Then, their inverse Fourier transforms _m_ 1( _x_, _y_ ) and _m_ 2( _x_, _y_ ) will be small, i.e. to first approximation, δ functions that convolve _g_ ( _x_, _y_ ) and _g_ <sup>∗</sup> (− _x_, − _y_ ), respectively. The stagnated phase image will therefore appear to be a linear superposition of the flipped and the upright images. This is indeed, exactly what one phenomenologically observes. This therefore leads us to our phenomenological relation for the stagnated image given by Eq. (4). The statistical validity of Eq. (4) is studied over different random trials and shown in Fig. 1(f). Research Article Vol. 32, No. 9 / 22 Apr 2024 / _Optics Express_ 16019 ~~(a)~~ 1.5 ~~(b)~~ 10 ~~(c)~~ 2.5 1.5 0.5 1.5 10 5 0 -5 <u>(d)</u> 1 0.5 0 1.5 0.5 -0.5 -1.5 <u>(e)</u> 1.5 0.22 ~~<u>(f)</u>~~ 1.5 0.5 -0.5 -1.5 0.22 0.18 0.14 0.1 0.06 0 20 40 60 80 100 Trials Fig. 1. Illustration of phase stagnation. (a) Test grayscale phase image ϕ( _x_, _y_ ). (b) Fourier magnitude for the test phase image, plotted in log scale. (c) Stagnated phase obtained after 800 iterations of the standard HIO algorithm. (d) Ground truth for the superposed phase ϕ( _x_, _y_ ) − ϕ(− _x_, − _y_ ). (e) Superposed phase evaluated by subtracting the point inverted phase of the stagnated field from itself. (f) Relative error between the superposed phase obtained from the stagnated image and the ground truth for 100 different random initiations of the HIO algorithm. The maximum and the minimum relative error values over 100 trials are 0.21 and 0.07 respectively, with a mean of 0.14, showing good fidelity with the ground truth and statistical stability over many repetitions with different random initializations 3. Augmented iterative phase retrieval (AIPR) The proposed method comprises of a certain number (e.g. 1400) iterations out of which a first set (e.g. 800 iterations) follow the standard HIO update where a random initial guess, the known Fourier magnitude | _G_ ( _fx_, _fy_ )| (alternatively, _O_ ( _fx_, _fy_ )) and the object support are fed as inputs. √︁ √︁ Fourier magnitude | _G_ ( _fx_, _fy_ )| (alternatively, _O_ ( _fx_, _fy_ )) and the object support are fed as inputs. We purposely choose our test phases to have centrosymmetric support as these kind of images √︁ are known to be more prone to stagnation [15]. During this stage the algorithm explores the solution space and yields either the stagnated field or the correct solution. At the end of 800 iterations, the phase of the output is subjected to point inversion and subtracted from itself to get the superposed phase. The phase corresponding to the 800th update is reserved as the input for the next iteration steps, where augmentation starts. Figure 1 demonstrates the generation of the superposed phase from the stagnated function for a grayscale test phase image ϕ( _x_, _y_ ). Fig. 1(c) shows the stagnated phase reconstructed from a run of 800 iterations of HIO algorithm. We test the validity of the equality in Eq. (7) by running 100 trials of such 800 HIO iterations with different random initiations and evaluating the superposed phase from the output. The relative error between thus generated superposed phase and the ground truth superposed phase (shown in Fig. 1(d)) for each of the 100 trials is shown in Fig. 1(f). The consistently low values indicate that the superimposed phase can be produced with high fidelity from the stagnant field functions, matching well with its respective ground truth. We point out that the 100 trials here are only shown to verify the statistical robustness of the superposed phase generation method. Our algorithm is based on the finding that the stagnated mode, post the 800 iterations can be overcome by perturbing the phase guess obtained henceforth after each HIO update, with a combination of two superposed phases. In line with the description above, these are obtained by applying the operators _R_ - that takes as its input, any 2-D phase function β( _x_, _y_ ), rotates it by Research Article Vol. 32, No. 9 / 22 Apr 2024 / _Optics Express_ 16020 180 <sup>◦</sup> and subtracts the rotated input phase function from the original input: _R_ −[β( _x_, _y_ )] = β( _x_, _y_ ) − β(− _x_, <u>−</u> _y_ ) (11) and _R_ + that constructs the sum of the rotated input phase function and the input: _R_ +[β( _x_, _y_ )] = β( _x_, _y_ ) + β(− _<u>x</u>_, <u>−</u> _<u>y</u>_ ). (12) We call the update steps as the augmentation steps. As is the case with HIO algorithm, the feedback parameter lies between [0, 1] [9] and it was empirically fixed to 0.8 for our analysis. The detailed steps for the ( _n_ + 1) _th_ iteration of the algorithm can be described via the pseudocode described in Algorithm 1. <u>Algorithm</u> <u>1.</u> <u>Augmented iterative phase retrieval</u> ~~4.~~ Simulation results _4.1._ _Effect of the augmentation steps_ In order to understand the impact of the augmentation steps, we illustrate the alterations they introduce in the trajectory of the algorithm. To make sure that the Nyquist sampling is followed for all the intensity images considered in our analysis, we have zero padded our images such that the computational window is of the size of 512 × 512 pixels and the object support size covers the central 250 × 250 pixels. The results presented henceforth show the central 250 × 250 pixels region. The algorithm presented here aims to retrieve complex valued objects and the test images shown henceforth are used as phase of the input field. We use the Fourier magnitude error and Research Article Vol. 32, No. 9 / 22 Apr 2024 / _Optics Express_ 16021 the phase error for our analysis which are defined, respectively, as: _E_ 1 = <sup><u>1</u></sup> _M_ _M_ _i_ =1 ∑︂ [| _F_ [ _exp_ ( _i_ ϕ <sup>ˆ</sup> _n_ )]| −| _G_ ( _fx_, _fy_ )|] <sup>2</sup> (13) _E_ 2 = <sup><u>1</u></sup> _M_ _M_ _i_ =1 ∑︂ _i_ =1 [ϕ <sup>ˆ</sup> _n_ +1 − ϕ <sup>ˆ</sup> _n_ ] <sup>2</sup> (14) Here _M_ is the total number of pixels and ϕ <sup>ˆ</sup> _n_ denotes the phase guess at the _n_ th iteration number. The blue curve in Fig. 2(a) shows the error metric _E_ 1 for the standard HIO algorithm which has stagnated in a local minimum. The inset shows the stagnated phase image at the 800th iteration. Application of the augmentation steps from this point onward brings a substantial change in the error value. The red curve shows the trajectory for the case when augmentation is stopped after the 820th iteration (hence 20 augmentation steps) and subsequently HIO is continued. We observe that the error starts to proceed towards a lower value (red curve). However, if we continue to apply the augmentation steps, it leads to a larger error value. In this range further implementation of augmentation steps do not bring substantial change in the phase guess, eventually leading to a wrong solution. Figure 2(b) shows the detailed plot of the changes introduced due to seventy augmentation steps post the 800 HIO iterations. We can broadly divide the course of evolution in three regions. We see that there is a small change in the error metric for the first few iterations (represented by Region I in the figure). The phase error plots in Fig. 2(c-d) show that the repeated small changes induced by the augmentation can eventually bring a substantial change in the updates, pushing the phase guess out of the local minimum and into Region II where we see a sudden large increase in the error. This sudden increase after several AIPR iterations is a universal feature that we observed in all tested image retrievals. Continuing with the AIPR augmentation will then continue to increase the error until this settles to some roughly constant value (Region III) and consequently provides wrong images. However, once the solution has been pushed out of the local minimum, returning in Region II to the standard HIO algorithm brings convergence towards a new solution with a reduced error and which we found in all cases to lead to the correct solution. _4.2._ _Reconstruction for test phase images_ We test the performance of the proposed algorithm via numerical simulations on gray-scale images taken as test phase. The phase values are scaled in the range of [0, π/2]. We implement 1400 iterations of the proposed augmented iterative phase retrieval algorithm wherein the superposed phase was constructed after the first 800 iterations. The augmentation steps were implemented at this point for a number of steps before switching back to the standard HIO algorithm again. The number of augmentation steps _Naug_ depends on the phase image and the initial guess and it varied from 17 to 19 for the four cases considered here. Figure 3 shows the reconstructions of four test phase images from their Fourier magnitudes using AIPR, compared with the reconstructions using the standard HIO algorithm. For comparing each of the reconstructed images with the ground truth phase function, we use the Pearson correlation co-efficient, which for two generic functions _a_ and _b_, is defined as: _PCC_ ( _a_, _b_ ) = _x_, _y_ <sup><u>(</u></sup> <sup>_a_</sup> <sup><u>(</u></sup> <sup>_x_</sup> <sup>,</sup> <sup>_y_</sup> <sup><u>) −⟨</u></sup> <sup>_a_</sup> <sup><u>⟩)(</u></sup> <sup>_b_</sup> <sup><u>(</u></sup> <sup>_x_</sup> <sup>,</sup> <sup>_y_</sup> <sup><u>) −⟨</u></sup> <sup>_b_</sup> <sup><u>⟩)</u></sup> <u>∑</u> _x_, _y_ <sup>(</sup> <sup>_a_</sup> <sup>(</sup> <sup>_x_</sup> <sup>,</sup> <sup>_y_</sup> <sup>) −⟨</sup> <sup>_a_</sup> <sup>⟩)2(</sup> <sup>_b_</sup> <sup>(</sup> <sup>_x_</sup> <sup>,</sup> <sup>_y_</sup> <sup>) −⟨</sup> <sup>_b_</sup> ~~√∑~~ ︂ <u>∑</u> ~~∑~~ ︂ _x_, _y_ <sup>(</sup> <sup>_a_</sup> <sup>(</sup> <sup>_x_</sup> <sup>,</sup> <sup>_y_</sup> <sup>) −⟨</sup> <sup>_a_</sup> <sup>⟩)2(</sup> <sup>_b_</sup> <sup>(</sup> <sup>_x_</sup> <sup>,</sup> <sup>_y_</sup> <sup>) −⟨</sup> <sup>_b_</sup> <sup>⟩)2</sup> (15) ︂ where ⟨ _a_ ⟩ and ⟨ _b_ ⟩ are the respective spatial mean of the functions. Perfect correlation between _a_ and _b_ gives a value of 1 while if they are uncorrelated _PCC_ ( _a_, _b_ ) = 0. The Fourier magnitude of the phase object is subjected to the proposed algorithm. The two algorithms use the same random Research Article Vol. 32, No. 9 / 22 Apr 2024 / _Optics Express_ 16022 ~~<u>(b)</u>~~ 10 <sup>5</sup> 10 <sup>4</sup> 10 <sup>3</sup> 10 <sup>2</sup> 10 <sup>1</sup> 10 <sup>-1</sup> 10 <sup>-3</sup> 10 <sup>-5</sup> 0 200 400 600 800 1000 1200 1400 Iteration number 10 <sup>5</sup> ~~<u>HIO</u>~~ ~~<u>AIPR</u>~~ <u>AIPR augmented till end</u> ~~<u>(a)</u>~~ 10 <sup>4</sup> <u>Region</u> ~~<u>I</u>~~ 10 <sup>3</sup> <u>Region</u> <u>Region</u> ~~<u>II</u>~~ ~~<u>III</u>~~ 0 200 400 600 800 1000 1200 1400 Iteration number 10 <sup>1</sup> 800 810 820 830 840 850 860 870 Iteration number ~~<u>HIO</u>~~ ~~<u>AIPR</u>~~ ~~<u>AIPR augmented till end</u>~~ ~~<u>(c)</u>~~ 10 <sup>1</sup> ~~<u>(d)</u>~~ 10 <sup>-1</sup> <u>Region</u> ~~<u>I</u>~~ 10 <sup>-3</sup> <u>Region</u> ~~<u>II</u>~~ <u>Region</u> ~~<u>III</u>~~ 800 810 820 830 840 850 860 870 Iteration number Fig. 2. Comparative error evolution with same random initialization. (a) Fourier magnitude error _E_ 1 for three cases: standard HIO algorithm, AIPR algorithm with augmentation applied after step 800 but only for limited steps and then followed by a return to HIO, and AIPR algorithm with augmentation applied continuously after step 800. The inset shows the reconstructed phase image at different stages of the three cases. (b) Detailed section from error plot of (a) showing the first seventy augmentation steps (800-870) that highlight the three regions I, II and III. (c) Corresponding phase error for the three cases. (d) Detailed section from error plot of (c) showing the first seventy augmentation steps (800-870). phase as the initial guess and it can be seen that our AIPR algorithm is able to reconstruct the phase image with good fidelity. The PCC values for AIPR algorithm reconstructions for the four case studies are above 0.96, while the corresponding stagnated HIO reconstructions register a maximum of 0.78. In all cases, the Fourier error shows the characteristic stagnation, followed by a sharp increase or spike when AIPR is initiated and the solution is pushed out of the local minimum, followed by a return to significantly lower errors when switching back to HIO. We point out that this approach can lead to the unambiguous upright solution if we construct a combination of superposed phases obtained from a) the final output phase and b) from the stagnated phase. To this end, in any run of the proposed method the final output phase, e.g. ϕ1400 (which could be either upright or flipped) can be subjected to the operator _R_ +. For both the cases of the flipped and the upright image, the result will be the same, i.e. ϕ( _x_, _y_ ) + ϕ(− _x_, − _y_ ). As mentioned before, the operator _R_ - applied on the phase output of the 800th iteration gives ϕ( _x_, _y_ ) − ϕ(− _x_, − _y_ ). It can be seen that a final combination of these two will yield the upright solution. Specifically, the upright image can be obtained as: ϕ _upright_ = 0.5( _R_ −[ _arg_ { _g_ 800}] + _R_ +[ _arg_ { _g_ 1400}]) (16) The method as it stands has not been optimized as to get the precise number of the augmentation steps. However, as demonstrated in Fig. 2, it was established phenomenologically that the first few steps did not bring the required change and moving beyond 20-25 augmentation steps yielded Research Article Vol. 32, No. 9 / 22 Apr 2024 / _Optics Express_ 16023 <u>(a)</u> <u>(b)</u> <u>(c)</u> <u>(d)</u> <u>(e)</u> <u>(f)</u> <u>(g)</u> <u>(h)</u> <u>(i)</u> <u>(j)</u> <u>(k)</u> <u>(l)</u> <u>(m)</u> 10 <sup>4</sup> 10 <sup>3</sup> 10 <sup>2</sup> ~~<u>HIO</u>~~ ~~<u>AIPR</u>~~ <u>0</u> <u>400</u> <u>800</u> <u>1200</u> Iteration number <u>(n)</u> 10 <sup>5</sup> ~~<u>HIO</u>~~ ~~<u>AIPR</u>~~ 10 <sup>3</sup> 10 <sup>1</sup> <u>0</u> <u>400</u> <u>800</u> <u>1200</u> Iteration number <u>(o)</u> 10 <sup>4</sup> ~~<u>HIO</u>~~ ~~<u>AIPR</u>~~ 10 <sup>3</sup> 10 <sup>2</sup> <u>0</u> <u>400</u> <u>800</u> <u>1200</u> Iteration number <u>(p)</u> ~~<u>HIO</u>~~ ~~AIPR~~ 10 <sup>3</sup> 10 <sup>2</sup> <u>0</u> <u>400</u> <u>800</u> <u>1200</u> Iteration number Fig. 3. Reconstruction results for different test phase images. (a-d) Grayscale test phase images. (e-h) Stagnated reconstructions after 800 iterations of the standard HIO algorithm. The PCC values are respectively, 0.6213, 0.4877, 0.7795, and 0.6491. (i-l) AIPR algorithm reconstructions carried out with same random initiations as that used for standard HIO algorithm reconstructions in the second column. PCC values are respectively, 0.9610, 0.9998, 0.9958, and 0.9873. (m-p) Fourier magnitude error _E_ 1 for the four cases. Research Article Vol. 32, No. 9 / 22 Apr 2024 / _Optics Express_ 16024 another local minimum, with larger Fourier magnitude error. One needs to be in the Region II where we see considerable change in the phase guess as compared to the previous guess. Once in region II, the decision probably could be automated by running the HIO for a few steps and then evaluate the degree of symmetry of the phase image. This forms the subject of future studies based on this method. _4.3._ _Reconstruction for larger phase range images_ The range chosen for the analysis so far was motivated by the fact that the _tan_ <sup>−1</sup> function in Eq. (7) holds when the test phase image lies in the range [0, π/2), or equivalently the superposed phase lies in the range (−π/2, π/2). There will be a larger uncertainty in superposed phase evaluation for wider phase range, owing to phase wrapping. To minimize this error, we do a modulo operation on all those values of the evaluated superposed phase that are outside the range (−π/2 − δϵ, π/2 + δϵ). The δϵ here is introduced as tolerance, keeping in mind that this being a numerical process there will be some error associated with each pixel value of the superposed phase and a hard boundary of (−π/2, π/2) for performing modulo operation can alter the otherwise approximately correct values at the limits of this boundary. Figure 4 shows the results for the test phase image in [0, 4π/5] range. Figure 4(e) shows the relative error between the superposed phase obtained from the stagnated image and the ground truth for 100 different random initiations of the HIO algorithm. As expected, the mean relative error (0.38) is larger than that reported for the case when the test phase image was in the range [0, π/2]. AIPR was able to reconstruct the right phase image as shown in Fig. 4(f) with a PCC of 0.9705 and the number of augmentation steps being 11. 0.3 0.1 <u>0</u> <u>20</u> <u>40</u> <u>60</u> <u>80</u> <u>100</u> Trials (a) (d) 2.5 2 1.5 1 0.5 0 3 2 1 0 -1 -2 0.9 0.7 0.5 (b) 3 2 1 0 -1 (c) 2 1 0 -1 -2 2.5 2 1.5 1 0.5 0 -2 -3 ~~<u>(e)</u>~~ (f) Fig. 4. Results with larger phase range. (a) Test phase image in the range [0, 4π/5].(b) Stagnated phase obtained after 800 iterations of the standard HIO algorithm.(c) Ground truth superposed phase. (d) Superposed phase evaluated by subtracting the point inverted phase of the stagnated field from itself. (e) Relative error between the superposed phase obtained from the stagnated image and the ground truth for 100 different random initiations of the HIO algorithm. (f) AIPR reconstruction. _4.4._ _Reconstructio_ _~~n~~_ _for noisy data_ We study the effect of ~~<u>n</u>~~ oise on the AIPR algorithm by generating Fourier intensity data limited by Poissonian noise fo ~~<u>r</u>~~ two different values of average photons pe ~~<u>r</u>~~ pixel. Figure 5(b,f) ~~s~~ how the stagnated phases obtai ~~<u>n</u>~~ ed from the noisy Fourier magnitudes for th ~~<u>e</u>~~ cases of 10 <sup>4</sup> and 10 <sup><u>3</u></sup> photons per ~~pixel, respectively.~~ T ~~he phase range use~~ d f ~~or this study was~~ [0, ~~4π/5].~~ ~~The perce~~ ntage of Research Article ~~<u>Vol.</u>~~ 32, No. 9 / 22 Apr 2024 / _Optics_ _Express_ 16025 pixels with zero photoncounts was 24% for the higher light level and 48% for the lower light level condition. Figure 5(c,g) show the superposed phase generated during AIPR with a relative error of 0.36 and 0.39 respectively for the two cases. AIPR could reconstruct the right phase image with PCC value of 0.94 and 0.91 for the case of 10 <sup>4</sup> and 10 <sup>3</sup> photons per pixel, respectively, although the reconstruction is noisy and there is a faint trace of the twin image in the lower light condition. The number of augmentation steps for the two cases was 14 and 12. <u>(a)</u> <u>(b)</u> <u>(c)</u> <u>(d)</u> 3 2 1 0 -1 -2 9 7 5 3 1 3 2.5 2 1.5 1 0.5 <u>(e)</u> <u>(f)</u> 3 <u>(g)</u> 3 <u>(h)</u> 2.5 2 1.5 1 0.5 2.5 2 1.5 1 0.5 3 2 1 0 -1 -2 8 6 4 2 0 3 2 1 0 -1 -2 -3 Fig. 5. Results with noisy Fourier intensity (a,e) Noisy Fourier magnitudes _G_ ( _fx_, _fy_ ) (log scale), (b,f) Stagnated phases obtained after 800 iterations of the standard HIO algorithm,(c,g) Superposed phases evaluated during AIPR, (d,h) AIPR reconstructions for average light levels of 10 <sup>4</sup> and 10 <sup>3</sup> photons/pixel, respectively. 5. Conclusion Phase recovery of a complex-valued object from single-shot Fourier magnitude data is an ill-posed problem. We demonstrate that the stagnated near field solutions have mathematical properties which can be used to construct the superposition of ground truth phases. This provides a prior information about the phase object that can be used as a constraint. We show through numerical simulations that the superposed phase can be used in the iterative phase retrieval algorithms to guide the convergence towards the right solution. Notably, this approach not only resolves the stagnation, but also delivers the correct image, i.e. the actual image without any ambiguity with the inverted image solution as is often the case with other approaches. Analysis with noisy data simulate real world data situations and show that the algorithm is still able to come out of the stagnation. The proposed method has its current limitation as lacking an algorithmic way to find the precise number of augmentation steps beyond checking that we are in the Region II of the error evolution. Future implementations of this approach can study algorithmic formulation which have alternations between HIO and augmentations, in line with the algorithms which switch between HIO and the ER algorithms. Funding. Engineering and Physical Sciences Research Council (EP/T00097X/1, EP/T002123/1); UK Research and Innovation (EP/Y029097/1). Acknowledgments. The authors acknowledge financial support from the Royal Academy of Engineering under the Chairs in Emerging Technology and the U.K. Engineering and Physical Sciences Research Council (Grants No. EP/T002123/1,EP/T00097X/1, EP/Y029097/1). Disclosures. The authors declare no conflicts of interest. Data availability. Data underlying the results presented in this paper are not publicly available at this time but may be obtained from the authors upon reasonable request. Research Article Vol. 32, No. 9 / 22 Apr 2024 / _Optics Express_ 16026 References 1. Y. Shechtman, Y. C. Eldar, and O. Cohen, “Phase retrieval with application to optical imaging: a contemporary [overview,” IEEE Signal Process. Mag.](https://doi.org/10.1109/MSP.2014.2352673) 32 (3), 87–109 (2015). 2. [H. N. Chapman and K. A. Nugent, “Coherent lensless X-ray imaging,” Nat. Photonics](https://doi.org/10.1038/nphoton.2010.240) 4 (12), 833–839 (2010). 3. [S. Marchesini, H. He, and H. N. Chapman, “X-ray image reconstruction from a diffraction pattern alone,” Phys. Rev.](https://doi.org/10.1103/PhysRevB.68.140101) [B](https://doi.org/10.1103/PhysRevB.68.140101) 68 (14), 140101 (2003). 4. C. Fienup and J. Dainty, “Phase retrieval and image reconstruction for astronomy,” Image Recovery: Theory and Application 231, 275 (1987). 5. [D. Ancora, D. Di Battista, and A. M. Vidal, “Hidden phase-retrieved fluorescence tomography,” Opt. Lett.](https://doi.org/10.1364/OL.385970) 45 (8), 2191–2194 (2020). 6. R. W. Gerchberg, “Phase determination from image and diffraction plane pictures in the electron microscope,” Optik 34, 275–284 (1971). 7. R. Gerchberg and W. Saxton, “A practical algorithm for the determination of phase from image and diffraction plane pictures,” Optik 35, 227–246 (1972). 8. [J. R. Fienup, “Reconstruction of an object from the modulus of its Fourier transform,” Opt. Lett.](https://doi.org/10.1364/OL.3.000027) 3 (1), 27–29 (1978). 9. J. R. Fienup, “Phase retrieval algorithms: [a personal tour,” Appl. Opt.](https://doi.org/10.1364/AO.52.000045) 52 (1), 45–56 (2013). 10. [Y. Tian and J. R. Fienup, “Phase retrieval with only a nonnegativity constraint,” Opt. Lett.](https://doi.org/10.1364/OL.478581) 48 (1), 135–138 (2023). 11. M. Deng, S. Li, and A. Goy, “Learning to synthesize: robust phase retrieval at low photon counts,” Light: [Sci. Appl.](https://doi.org/10.1038/s41377-020-0267-2) 9 (1), 36 (2020). 12. A. Goy, K. Arthur, S. Li, _et al._ [, “Low photon count phase retrieval using deep learning,” Phys. Rev. Lett.](https://doi.org/10.1103/PhysRevLett.121.243902) 121 (24), 243902 (2018). 13. J. Fienup and C. Wackerman, “Phase-retrieval stagnation problems and solutions,” J. Opt. [Soc.](https://doi.org/10.1364/JOSAA.3.001897) Am. A 3 (11), 1897–1907 (1986). 14. [M. Guizar-Sicairos and J. R. Fienup, “Understanding the twin-image problem in phase retrieval,” J. Opt. Soc. Am. A](https://doi.org/10.1364/JOSAA.29.002367) 29 (11), 2367–2375 (2012). 15. [C. Gaur, B. Mohan, and K. Khare, “Sparsity-assisted solution to the twin image problem in phase retrieval,” J. Opt.](https://doi.org/10.1364/JOSAA.32.001922) [Soc. Am. A](https://doi.org/10.1364/JOSAA.32.001922) 32 (11), 1922–1927 (2015). 16. [M. Butola, S. Rajora, and K. Khare, “Phase retrieval with complexity guidance,” J. Opt. Soc. Am. A](https://doi.org/10.1364/JOSAA.36.000202) 36 (2), 202–211 (2019). 17. H. M. L. Faulkner and J. Rodenburg, “Movable aperture lensless transmission microscopy: a novel phase retrieval [algorithm,” Phys. Rev. Lett.](https://doi.org/10.1103/PhysRevLett.93.023903) 93 (2), 023903 (2004). 18. M. K. Sharma, C. Gaur, P. Senthilkumaran, _et al._ [, “Phase imaging using spiral-phase diversity,” Appl. Opt.](https://doi.org/10.1364/AO.54.003979) 54 (13), 3979–3985 (2015). 19. [E. J. Candes, X. Li, and M. Soltanolkotabi, “Phase retrieval from coded diffraction patterns,” Appl. Comput. Harmon.](https://doi.org/10.1016/j.acha.2014.09.004) [Analysis](https://doi.org/10.1016/j.acha.2014.09.004) 39 (2), 277–299 (2015). 20. C. Guo, S. Liu, and J. T. Sheridan, “Iterative phase retrieval algorithms. I: optimization,” [Appl.](https://doi.org/10.1364/AO.54.004698) Opt. 54 (15), 4698–4708 (2015). 21. L. Liberman, Y. Israel, E. Poem, _et al._ [, “Quantum enhanced phase retrieval,” Optica](https://doi.org/10.1364/OPTICA.3.000193) 3 (2), 193–199 (2016).

섹션 본문

섹션 본문이 없습니다.

참고문헌 19건

  1. Iterative phase retrieval algorithms I: optimization Applied Optics · Optica Publishing Group · 2015 10.1364/ao.54.004698
  2. Quantum enhanced phase retrieval Optica · Optica Publishing Group · 2016 10.1364/optica.3.000193
  3. Reconstruction of an object from the modulus of its Fourier transform Optics Letters · Optica Publishing Group · 1978 10.1364/ol.3.000027
  4. Phase imaging using spiral-phase diversity Applied Optics · Optica Publishing Group · 2015 10.1364/ao.54.003979
  5. X-ray image reconstruction from a diffraction pattern alone Physical review. B, Condensed matter · American Physical Society · 2003 10.1103/physrevb.68.140101
  6. Phase Retrieval with Application to Optical Imaging: A contemporary overview IEEE Signal Processing Magazine · Institute of Electrical and Electronics Engineers · 2015 10.1109/msp.2014.2352673
  7. Movable Aperture Lensless Transmission Microscopy: A Novel Phase Retrieval Algorithm Physical Review Letters · American Physical Society · 2004 10.1103/physrevlett.93.023903
  8. Phase retrieval algorithms: a personal tour [Invited] Applied Optics · Optica Publishing Group · 2012 10.1364/ao.52.000045
  9. Coherent lensless X-ray imaging Nature Photonics · Nature Portfolio · 2010 10.1038/nphoton.2010.240
  10. Phase-retrieval stagnation problems and solutions Journal of the Optical Society of America A · Optica Publishing Group · 1986 10.1364/josaa.3.001897
  11. Understanding the twin-image problem in phase retrieval Journal of the Optical Society of America A · Optica Publishing Group · 2012 10.1364/josaa.29.002367
  12. Image recovery: Theory and application IEEE Journal of Quantum Electronics · IEEE Photonics Society · 1987 10.1109/jqe.1987.1073296
  13. Sparsity-assisted solution to the twin image problem in phase retrieval Journal of the Optical Society of America A · Optica Publishing Group · 2015 10.1364/josaa.32.001922
  14. Low Photon Count Phase Retrieval Using Deep Learning Physical Review Letters · American Physical Society · 2018 10.1103/physrevlett.121.243902
  15. Phase retrieval with complexity guidance Journal of the Optical Society of America A · Optica Publishing Group · 2019 10.1364/josaa.36.000202
  16. Phase retrieval from coded diffraction patterns Applied and Computational Harmonic Analysis · Elsevier BV · 2014 10.1016/j.acha.2014.09.004
  17. Hidden phase-retrieved fluorescence tomography Optics Letters · Optica Publishing Group · 2020 10.1364/ol.385970
  18. Learning to synthesize: robust phase retrieval at low photon counts Light Science & Applications · Springer Nature · 2020 10.1038/s41377-020-0267-2
  19. Phase retrieval with only a nonnegativity constraint Optics Letters · Optica Publishing Group · 2022 10.1364/ol.478581