(Top)
Part of a series on Phase retrieval
The Ptychographic Iterative Engine (PIE) is the first iterative algorithm used for ptychography by Rodenburg and Faulkner (1,2). PIE extends the traditional Gerchberg-Saxton Algorithm (3,4) to use the multiple probe positions of ptychography. Like the Gerchberg-Saxton algorithm, PIE works by repeatedly moving between the real and reciprocal spaces and applying the respective constraints in each space, solving piecewise for the whole object.
Real space constraint:
Reciprocal space constraint:
Algorithm
Faulkner, H. M. L. & Rodenburg, J. M. Movable Aperture Lensless Transmission Microscopy: A Novel Phase Retrieval Algorithm. Phys. Rev. Lett. 93, 023903 (2004).
Rodenburg, J. M. & Faulkner, H. M. L. A phase retrieval algorithm for shifting illumination. Applied Physics Letters 85, 4795–4797 (2004).
Let us outline the basics of the original PIE algorithm given by Rodenburg and Faulkner in (2).
Algorithm summary
- Start with a guess:
- Create the exit waves:
- Propagate:
- Correct amplitudes:
- Backpropagate:
- Update object according to:
- Select different scan position and repeat steps 2 to 6 until error converges
PIE assumes a known probe
The algorithm starts with a guess of the object
The exit wave is propagated to the diffraction plane
This “corrects” the amplitudes while keeping the phases of the guessed wave. The corrected wave is then backpropagated to become the new guess for the exit wave.
Solving for
Importantly, PIE tweaks this update equation with a weighting
function related to
- The weighting function
gives credence to where the illumination is brightest to update those areas the most. ensures that a division-by-zero does not occur. controls the feedback; i.e. the size of the update at each iteration.
In Rodenburg and Faulkner’s words:
“The [weighting] function favors the influence of those areas of the specimen which have been strongly illuminated and attenuates the high errors which otherwise arise where the illumination was weak.”
These steps are repeated for the next piece (next index
Simultaneously solving the probe: ePIE
Maiden, A. M. & Rodenburg, J. M. An improved ptychographical phase retrieval algorithm for diffractive imaging. Ultramicroscopy 109, 1256–1262 (2009).
The simultaneous reconstruction of the probe has been a key part in the robustness of ptychography. Maiden and Rodenburg introduced the extended PIE (ePIE) algorithm in 2009 (5), alongside the development of other probe-solving algorithms such as the Difference Map or Conjugate Gradient Descent.
Steps 1 to 5 are identical to PIE, but a new update equation is
used in ePIE. The weighting function uses the intensity instead of
the amplitude, which cancels the
Importantly, ePIE introduces an update equation for the probe, which is symmetric to the object update:
As the problematic denominator has been canceled,
Comment:
Note that the real space constraint
, implies and are on equal footing. The only requirement is that can be separated into a product, and the factors can shift their positions independently. An algorithm cannot identify which of the factors is truly the ‘probe’ and which is the ‘object’. To the algorithm, reconstructing the probe and reconstructing the object is identical, which is reflected in the symmetry of the update equations of ePIE. In practice, because we want to image a large field of view from a localized probe, we set the dimensions of the probe as the array detector, and calculate the object size from the shift positions. However, from the algorithm’s point of view, it is indistinguishable to having a large ‘probe’ to image a small ‘object’.