Abstract
Coherent Diffraction Imaging (CDI), a technique where an object is reconstructed from a single (2D or 3D) diffraction pattern, recovers the lost diffraction phases without a priori knowledge of the extent (support) of the object. The uncertainty of the object support can lead to over-fitting and prevents an unambiguous metric evaluation of solutions. We propose to use a ‘free’ log-likelihood indicator, where a small percentage of points are masked from the reconstruction algorithms, as an unbiased metric to evaluate the validity of computed solutions, independent of the sample studied. We also show how a set of solutions can be analysed through an eigen-decomposition to yield a better estimate of the real object. Example analysis on experimental data is presented both for a test pattern dataset, and the diffraction pattern from a live cyanobacteria cell. The method allows the validation of reconstructions on a wide range of materials (hard condensed or biological), and should be particularly relevant for 4th generation synchrotrons and X-ray free electron lasers, where large, high-throughput datasets require a method for unsupervised data evaluation.
Similar content being viewed by others
Introduction
Coherent Diffraction Imaging (CDI) is a technique that exploits the coherence properties of a light source, for instance, synchrotron generated X-ray beams, to reconstruct two- or three-dimensional objects from their diffraction pattern alone1,2,3,4,5. Such an approach can also be used with soft X-ray sources6 and coherent electron beams7,8 and when employed in the Bragg geometry yields quantitative strain information9,10,11,12,13. CDI has been successfully used on a wide range of samples, from single cells14 to inorganic particles15,16, with applications exploiting the temporal properties of X-ray Free Electron Lasers to viruses17 and time-resolved strain analysis18.
As CDI is based on the measurement of the far-field diffraction pattern of a single object, the reconstruction is only possible if the diffraction pattern is recorded at a spacing finer than the Nyquist frequency (this condition is called oversampling)1,3,19. This is easily done experimentally if the sample size can be estimated, and a variety of algorithms (Error Reduction (ER), Hybrid Input-Output (HIO), Relaxed Averaged Alternating Reflectors (RAAR), Charge Flipping (CF) etc.) can be used to phase the diffraction pattern and reconstruct the object5,20,21.
However the weakness of CDI lies in the absence of reliable figures of merit to assess the quality of the reconstructed objects. In principle, it is easy to define a figure of merit by comparing the observed diffraction pattern to the calculated one. But as the diffraction pattern is oversampled and the actual size and shape of the object is unknown, it is easy to create incorrect solutions which involve an object size larger than the real one (i.e. with many extra free parameters), and thus yield a better figure of merit by over-fitting.
In this article, we propose a free log-likelihood as an objective figure of merit that outperforms those that exist in the literature. Then we show how it can be applied to evaluate the solutions and combine them to obtain the final optimal reconstruction.
All the data and the python notebooks used to generate the figures in this article are available from22.
Figures of Merit
A number of figures of merit have been used in the literature, working either in the object or Fourier-space domain. A list of the most used figures of merit is shown in Table 1. Note that the most quantitative approach to a reliable figure of merit was introduced for Ptychography23, using a likelihood based analysis that considers Poisson noise.
In order to evaluate how discriminating these figures are, we used a 2D diffraction dataset, from an ESRF logo sample, recorded at the ID10 beamline15 (see25 for experimental details). A center of symmetry was applied to the diffraction pattern in order to reduce the number of unobserved pixels behind the beamstop (in the case of a homogeneous object with a constant thickness, where the projected electronic density is constant i.e., the object is real up to a constant phase factor, the diffracted intensity (Fourier Transform) is centro-symmetric). In Fig. 1 the diffraction data and several reconstructed solutions are shown, which were obtained by starting from a random object with a fixed support, 400 cycles of Hybrid Input-Output followed by 200 cycles of Error Reduction. Note that the actual algorithm used here is irrelevant, as any global optimisation scheme will produce a distribution of solutions, and the aim of this article is to provide a way to assess their quality. We deliberately did not impose positivity to have a large enough range of solutions to evaluate.
The three solutions were generated using (b) a tight support (4353 pixels), and loose supports that radially expand the tight support by (c) two pixels, or (d) seven pixels. As is clearly seen in Fig. 1, the best result is obtained with a tight support, and quickly degrades for larger supports.
As can be seen in Table 1, none of the figures of merit are discriminating: while the solution in Fig. 1b) obtained from a tight support is obviously the best and corresponds to the scanned sample25, both the object-domain error and the Fourier-based metric \({E}_{F}^{2}\) show little difference between the solutions, and are higher for the correct tight support solution. This is clearer for the LLK, which is worse for the tight solution (b) even though it is the best result. The main reason for these conflicting results is that the more points there are in the support, the more free parameters the algorithm can use to better fit the diffraction data - Fig. 1d) shows a clear case of over-fitting.
From this example one concludes that it is essential to simultaneously achieve both: a good fit between the calculated and observed diffraction pattern, and a tight support around the object. This has long been known and efficient algorithms, such as the shrink-wrap approach5, exist to produce a tight support which will normally yield a unique solution in two or three dimensions26,27,28,29,30,31.
Other constraints or figures of merit can be used based on physical properties, but they rely strongly on a priori knowledge of the object and thus are limited in application. For example, positivity of the reconstructed object (e.g. when operating in the small-angle regime for a thin object, or in the Bragg regime for an unstrained nanocrystal), or enforcing phase, density or other ad hoc constraints32.
The lack of an unambiguous evaluation metric often leads to the need to visually inspect, evaluate and select solutions, which is very slow, and hence unpractical. As brighter X-ray sources pave the way for serial CDI experiments with larger data throughput33,34, the need, for a discriminating figure of merit to sort the computed solutions without requiring a visual inspection, is paramount.
free log-likelihood
The risk of misleading figures of merit due to over-fitting also exists e.g. in macro-molecular crystallography, where the large number of parameters (the atomic positions) must be refined against the available diffraction data: in order to avoid over-fitting, a free R-factor was introduced35,36,37 and has since been used by the community. This consists of setting aside a small percentage of diffraction data (the ‘free’ set) and refining the structure against the remaining’ working set’ of data. The \({R}_{free}\) is then evaluated only by comparing the calculated diffraction data against the ‘free’ set, producing an un-biased figure of merit. This approach is more generally known as jack-knifing38,39, and was developed for unbiased statistical evaluation.
This approach is even more appealing for CDI because of the large uncertainty of the support area (contrary to refinement in crystallography where the atomic sequence or chemical formula is usually known). We have implemented this in the PyNX accelerated coherent imaging toolkit40, which can be used for CDI analysis:
≈5% of the observed diffraction data is set aside in a ‘free’ set of pixels with pixels, which are grouped in islands of radius 3 pixels (volumes in 3D) - to make sure that correlations between neighbouring pixels does not create a strong relationship between the working set and the ‘free’ set. This is needed because the diffraction data is oversampled1,41, and thus neighbouring pixels are not completely independent. Note that the proposed size of the islands corresponds to a typical oversampling ratio in CDI experiments, but could be tuned according for each experiment, even each direction. The effect of the island size can be seen in figures available as supplementary information.
The free pixels are randomly located in the dataset, only excluding the center of the diffraction pattern (5% of the maximum radius): this area can include a large number of photons, and masking those can hinder the initial estimate of the object.
when performing the usual projection algorithms20, in the Fourier update step (replacing the calculated amplitudes with the observed ones while keeping the calculated phases), pixels in the ‘free’ set are considered masked and keep their calculated complex value.
In the following we will only report the free Poisson log-likelihood \(LL{K}_{free}\) figure of merit, because the photon counting properties of modern X-ray detectors theoretically make Poisson log-likelihood the natural choice. However, we would like to point out that the ensuing discussion and examples would be identical with any other noise model or Fourier based metric.
As is shown in Table 1, the free log-likelihood correctly discriminates between the three solutions (tight support, +2 pixels, +7 pixels).
We conducted a more systematic study using the same dataset as for Fig. 1 and performed 1000 optimisations using a similar approach: starting from a random object with an initial tight support expanded by a radius of 7 pixels, then performing 400 HIO cycles followed by 200 ER cycles, updating the support every 20 cycles, with a support threshold5 randomly chosen between 0.25 to 0.4. Note that we did not impose positivity: that and the random threshold values leads to a wide range of solutions for statistical purposes. With a positivity constraint, most solutions would have been much closer to the optimal one. Both \(LLK\) and \(LL{K}_{free}\) are plotted against the final number of pixels in the support for all solutions in Fig. 2. In this graph the normal \(LLK\) (measured against the ‘working’ set) monotonically decreases as the number of points in the support increases, even if a kink is clearly visible in the curve. \(LL{K}_{free}\) however, displays a clear minimum around 4300 pixels, which corresponds to an optimal solution similar to that in Fig. 1b.
While this demonstrates the capability of \(LL{K}_{free}\) to serve as an unbiased figure of merit, we have identified two limitations. First, nothing prevents an incorrect model to have a low \(LL{K}_{free}\) by chance - however as is shown in Fig. 2 with 1000 generated solutions, it is statistically improbable. Second, \(LL{K}_{free}\) is not an absolute figure of merit, and a single value cannot indicate the validity of the solution, as it is dependent on the counting statistics (e.g. a dataset with many zero-valued points will generate both a low \(LLK\) and a low \(LL{K}_{free}\)). Finding an optimal solution relies on (i) generating a number (typically at least 20) of solutions and then (ii) the lowest \(LL{K}_{free}\), for the same set of free pixels. A more complete validation requires a statistical analysis of the best solutions, as will now be explained.
Eigen- and average solutions
Once a set of solutions has been produced, usually a selection of the best solutions are averaged and then compared against the diffraction data, e.g. by plotting the Phase Retrieval Transfer Function (PRTF)14,15,24, which is the ratio of the average calculated amplitude to the observed amplitude, as a function of the resolution ring (a fraction of the sampling frequency of the dataset). The relative frequency at which the PRTF falls below 50% can be used as an indication of the correlation between the chosen solutions, and of the resolution of the reconstruction.
An alternative approach to averaging consists in computing eigenvectors for the selected solutions. This is done by arranging all solutions in a matrix (by flattening each solution as a one-dimensional row of the matrix), and then computing the singular value decomposition (SVD) of this matrix, which yields a set of orthonormal ‘eigen-solutions’42. One property of this decomposition is that it conserves the total squared amplitude of the solutions.
An example of application on the ESRF logo dataset is shown in Fig. 3. This method presents a few advantages compared to averaging: first, it is less sensitive to outlier solutions than averaging (a single outlier would contribute to secondary modes in the eigenvector decomposition), and second, it yields a weight (its overall squared amplitude) for each eigen-solution that can also be used as an indicator of the correlation between solutions, ideally the relative weight of the first (strongest) eigen-solution should be as close to 100% as possible.
Figure 3 shows the result of combining either the 10 or 4 best (lowest \(LL{K}_{free}\)) solutions from 50 optimisations, obtained with the same procedure as those in Fig. 2, and after sub-pixel alignment43 and phase matching of the solutions. Note that the 10 best selected solutions had up to 16300 points in the support and a \(LL{K}_{free}\) up to 255, while the 4 best had up to 5100 points with a \(LL{K}_{free}\) lower than 148. The purpose of keeping all 10 solutions is to evaluate the efficiency of combining imperfect solutions, which is often the case in CDI. The shown figures were tested against several generated set of solutions with similar results.
The most intense mode (Fig. 3a)) represents 76% of the 10 solutions, and is similar to the average (Fig. 3b)) but with slightly reduced background noise outside the main object (also see the line cut in Fig. 3c)). The secondary modes (e.g. Fig. 3d,e)) can be used as an indicator of where the computed solutions have more diversity. The PRTF (Fig. 3f)) shows that the first decomposed mode yields a higher resolution than the average solution, but remains inferior to the first mode of only the 4 best solutions (this mode then represents 99% of the selected 4). Note that when only a subset of close-to-optimal solutions are selected, there is little difference between the first mode and the average (identical PRTF).
Example application to single cyanobacteria cells
As the reconstruction relies heavily on the tight support, it is easily obtained for binary objects like the ESRF logo already presented. However in the case of biological specimens (e.g. cells)44,45,46 the support update often requires some careful optimisation, including hand-picking of the support area46, as it is difficult to choose a threshold value for the automatic update of the support region using a shrinkwrap-based algorithm5 or it will yield solutions with similar figures-of-merit which must then be sorted out e.g. using clustering analysis47.
To test the usefulness of free log-likelihood for biological samples, we used the Coherent X-ray imaging Database48 dataset #1649, which includes the original diffraction data and the published experimental parameters47.
We used the following procedure, with the goal to test unsupervised support and object optimisation:
- 1.
Run 100 independent reconstructions with the following parameters: start from a large support 200 pixels in diameter, with a random object. First perform 2000 cycles of HIO with a positivity constraint and a detwinning procedure after 1000 cycles. Then proceed without the positivity constraint, with 2000 HIO cycles and then 2000 RAAR cycles. Finish with 200 ER cycles. The support was updated every 20 cycles, with a fixed relative threshold randomly chosen between 0.1 and 0.4.
- 2.
Select the best 10 reconstructions based on the free log-likelihood, and perform an eigen-solution analysis. Note that during this analysis, the mask of free pixels was kept fixed (contrary to what is shown in Fig. 2) for all optimisations, in order to ensure the consistency of the free log-likelihood figure of merit.
The result of this optimisation is shown in Fig. 4. The results can be compared to the original publication, where 400 optimisations where performed for each dataset, and clustering analysis was performed to detect outliers with similar figures of merit (Fig. 6 in47). Our results are similar but require a less intensive computational approach.
Conclusion
In this article we have shown that using a free log-likelihood figure-of-merit allows one to evaluate solutions from CDI optimisations in a unbiased manner, despite the lack of a priori knowledge of the object support size and shape. Moreover using an orthonormal mode decomposition of the best solutions yields a better solution less prone to outlier results compared to the usual averaging approach.
The main advantage of this method is that it is completely generic, as it does not rely on any a priori knowledge on the sample (complex-valued or real-valued object, homogeneity of density or phase, etc.), and can thus be used for unsupervised phasing. Moreover this approach has a very low computational cost and can easily be implemented. This should be particularly relevant for high data throughput approaches which are now being developed with X-ray free electron laser and brighter synchrotron sources.
References
Sayre, D., Chapman, H. N. & Miao, J. On the extendibility of X-ray crystallography to noncrystals. Acta Crystallogr. Sect. A: Foundations Crystallogr. 54, 232–239 (1998).
Miao, J., Charalambous, P., Kirz, J. & Sayre, D. Extending the methodology of X-ray crystallography to allow imaging of micrometre-sized non-crystalline specimens. Nature 400, 342–344, https://doi.org/10.1038/22498 (1999).
Miao, J. & Sayre, D. On possible extensions of X-ray crystallography through diffraction-pattern oversampling. Acta Crystallogr. Sect. A Foundations Crystallogr. 56, 596–605, https://doi.org/10.1107/S010876730001031X (2000).
Miao, J., Hodgson, K. O. & Sayre, D. An approach to three-dimensional structures of biomolecules by using singlemolecule diffraction images. PNAS 98, 6641–6645, https://doi.org/10.1073/pnas.111083998 (2001).
Marchesini, S. et al. X-ray image reconstruction from a diffraction pattern alone. Phys. Rev. B. 68, 140101, https://doi.org/10.1103/PhysRevB.68.140101 (2003).
Sandberg, R. L. et al. Lensless Diffractive Imaging Using Tabletop Coherent High-Harmonic Soft-X-Ray Beams. Phys. Rev. Lett. 99, 098103, https://doi.org/10.1103/PhysRevLett.99.098103 (2007).
Zuo, J. M., Vartanyants, I., Gao, M., Zhang, R. & Nagahara, L. A. Atomic Resolution Imaging of a Carbon Nanotube from Diffraction Intensities. Science 300, 1419–1421, https://doi.org/10.1126/science.1083887 (2003).
Huang, W. J. et al. Coordination-dependent surface atomic contraction in nanocrystals revealed by coherent diffraction. Nat Mater 7, 308–313, https://doi.org/10.1038/nmat2132 (2008).
Robinson, I. K., Vartanyants, I. A., Williams, G. J., Pfeifer, M. A. & Pitney, J. A. Reconstruction of the Shapes of Gold Nanocrystals Using Coherent X-Ray Diffraction. Phys. Rev. Lett. 87, 195505, https://doi.org/10.1103/PhysRevLett.87.195505 (2001).
Williams, G. J., Pfeifer, M. A., Vartanyants, I. A. & Robinson, I. K. Three-Dimensional Imaging of Microstructure in Au Nanocrystals. Phys. Rev. Lett. 90, 175501, https://doi.org/10.1103/PhysRevLett.90.175501 (2003).
Pfeifer, M. A., Williams, G. J., Vartanyants, I. A., Harder, R. & Robinson, I. K. Three-dimensional mapping of a deformation field inside a nanocrystal. Nature 442, 63–66, https://doi.org/10.1038/nature04867 (2006).
Favre-Nicolin, V. et al. Analysis of strain and stacking faults in single nanowires using Bragg coherent diffraction imaging. New J. Phys. 12, 035013, https://doi.org/10.1088/1367-2630/12/3/035013 (2010).
Robinson, I. & Harder, R. Coherent X-ray diffraction imaging of strain at the nanoscale. Nat Mater 8, 291–298, https://doi.org/10.1038/nmat2400 (2009).
Shapiro, D. et al. Biological imaging by soft x-ray diffraction microscopy. PNAS 102, 15343–15346, https://doi.org/10.1073/pnas.0503305102 (2005).
Chushkin, Y. et al. Three-dimensional coherent diffractive imaging on non-periodic specimens at the ESRF beamline ID10. J. Synchrotron Radiat. 21, 594–599, https://doi.org/10.1107/S1600577514003440 (2014).
Beuvier, T. et al. X-ray nanotomography of coccolithophores reveals that coccolith mass and segment number correlate with grid size. Nat. Commun. 10, 751, https://doi.org/10.1038/s41467-019-08635-x (2019).
Seibert, M. M. et al. Single mimivirus particles intercepted and imaged with an X-ray laser. Nature 470, 78–81, https://doi.org/10.1038/nature09748 (2011).
Clark, J. N. et al. Ultrafast Three-Dimensional Imaging of Lattice Dynamics in Individual Gold Nanocrystals. Science 341, 56–59, https://doi.org/10.1126/science.1236034 (2013).
Sayre, D. Some implications of a theorem due to Shannon. Acta Crystallogr. 5, 843–843, https://doi.org/10.1107/S0365110X52002276 (1952).
Marchesini, S. A unified evaluation of iterative projection algorithms for phase retrieval. Rev. Sci. Instruments 78, 011301, https://doi.org/10.1063/1.2403783 (2007).
Fienup, J. R. Phase retrieval algorithms: a personal tour [Invited]. Appl. Opt. 52, 45, https://doi.org/10.1364/AO.52.000045 (2013).
Favre-Nicolin, V. Free log-likelihood as an unbiased metric for coherent diffraction imaging: figures and data, https://doi.org/10.5281/zenodo.3451855 (2019).
Thibault, P. & Guizar-Sicairos, M. Maximum-likelihood refinement for coherent diffractive imaging. New J. Phys. 14, 063004, https://doi.org/10.1088/1367-2630/14/6/063004 (2012).
Chapman, H. N. et al. High-resolution ab initio three-dimensional x-ray diffraction microscopy. J. Opt. Soc. Am. A 23, 1179–1200, https://doi.org/10.1364/JOSAA.23.001179 (2006).
Latychevskaia, T., Chushkin, Y., Zontone, F. & Fink, H.-W. Imaging outside the box: Resolution enhancement in X-ray coherent diffraction imaging by extrapolation of diffraction patterns. Appl. Phys. Lett. 107, 183102, https://doi.org/10.1063/1.4934879 (2015).
Devaney, A. J. & Chidlaw, R. On the uniqueness question in the problem of phase retrieval from intensity measurements. J. Opt. Soc. Am. 68, 1352–1354, https://doi.org/10.1364/JOSA.68.001352 (1978).
Crimmins, T. R. & Fienup, J. R. Ambiguity of phase retrieval for functions with disconnected support. J. Opt. Soc. Am. 71, 1026–1028, https://doi.org/10.1364/JOSA.71.001026 (1981).
Bates, R. H. T. Fourier phase problems are uniquely solvable in mute than one dimension. I: Underlying theory. Optik 61, 247 (1982).
Hayes, M. The reconstruction of a multidimensional sequence from the phase or magnitude of its Fourier transform. IEEE Transactions on Acoust. Speech. Signal Process. 30, 140–154, https://doi.org/10.1109/TASSP.1982.1163863 (1982).
Bates, R. Uniqueness of solutions to two-dimensional fourier phase problems for localized and positive images. Comput. Vision, Graph. Image Process. 25, 205–217, https://doi.org/10.1016/0734-189X(84)90103-8 (1984).
Seldin, J. H. & Fienup, J. R. Numerical investigation of the uniqueness of phase retrieval. J. Opt. Soc. Am. A 7, 412, https://doi.org/10.1364/JOSAA.7.000412 (1990).
Ulvestad, A. et al. Identifying Defects with Guided Algorithms in Bragg Coherent Diffractive Imaging. Sci. Reports 7, 9920, https://doi.org/10.1038/s41598-017-09582-7 (2017).
Schülli, T. U. & Leake, S. J. X-ray nanobeam diffraction imaging of materials. Curr. Opin. Solid State Mater. Sci. 22, 188–201, https://doi.org/10.1016/j.cossms.2018.09.003 (2018).
Björling, A. et al. Coherent Bragg imaging of 60 nm Au nanoparticles under electrochemical control at the NanoMAX beamline. J Synchrotron Rad 26, 1830–1834, https://doi.org/10.1107/S1600577519010385 (2019).
Brünger, A. T. Free R value: a novel statistical quantity for assessing the accuracy of crystal structures. Nature 355, 472–475, https://doi.org/10.1038/355472a0 (1992).
Tickle, I. J., Laskowski, R. A. & Moss, D. S. Rfree and the Rfree Ratio. I. Derivation of Expected Values of Cross-Validation Residuals Used in Macromolecular Least-Squares Refinement. Acta Crystallogr. Sect. D Biol. Crystallogr. 54, 547–557, https://doi.org/10.1107/S0907444997013875 (1998).
Tickle, I. J., Laskowski, R. A. & Moss, D. S. Rfree and the Rfree ratio. II. Calculation of the expected values and variances of cross-validation statistics in macromolecular least-squares refinement. Acta Crystallogr. Sect. D Biol. Crystallogr. 56, 442–450, https://doi.org/10.1107/S0907444999016868 (2000).
Quenouille, M. H. Problems in Plane Sampling. The Annals Math. Stat. 20, 355–375, https://doi.org/10.1214/aoms/1177729989 (1949).
Efron, B. & Stein, C. The Jackknife Estimate of Variance. The Annals Stat. 9, 586–596, https://doi.org/10.1214/aos/1176345462 (1981).
Favre-Nicolin, V. PyNX, Python tools for Nanostructure Xtallography and coherent X-ray imaging, http://ftp.esrf.fr/pub/scisoft/PyNX/ (2010).
Miao, J., Kirz, J. & Sayre, D. The oversampling phasing method. Acta Crystallogr. Sect. D Biol. Crystallogr. 56, 1312–1315, https://doi.org/10.1107/S0907444900008970 (2000).
Virtanen, P. et al. SciPy 1.0–Fundamental Algorithms for Scientific Computing in Python. arXiv:1907.10121 [physics] (2019). ArXiv: 1907.10121.
Guizar-Sicairos, M., Thurman, S. T. & Fienup, J. R. Efficient subpixel image registration algorithms. Opt. Letters 33, 156–158 (2008).
Miao, J. et al. Imaging whole Escherichia coli bacteria by using single-particle x-ray diffraction. Proc. Natl. Acad. Sci. 100, 110–112, https://doi.org/10.1073/pnas.232691299 (2003).
Thibault, P., Elser, V., Jacobsen, C., Shapiro, D. & Sayre, D. Reconstruction of a yeast cell from X-ray diffraction data. Acta Crystallogr. Sect. A Foundations Crystallogr. 62, 248–261, https://doi.org/10.1107/S0108767306016515 (2006).
Nelson, J. et al. High-resolution x-ray diffraction microscopy of specifically labeled yeast cells. PNAS 107, 7235–7239, https://doi.org/10.1073/pnas.0910874107 (2010).
van der Schot, G. et al. Imaging single cells in a beam of live cyanobacteria with an X-ray laser. Nat Commun 6, 5704, https://doi.org/10.1038/ncomms6704 (2015).
Maia, F. R. N. C. The Coherent X-ray Imaging Data Bank. Nat. Methods 9, 854–855, https://doi.org/10.1038/nmeth.2110 (2012).
Schot, G. Imaging single cells in a beam of live cyanobacteria with an X-ray laser (CXIDB ID 26), https://doi.org/10.11577/1169686 (2015). Type: dataset.
Enders, B. & Thibault, P. A computational framework for ptychographic reconstructions. Proc. Math Phys. Eng. Sci. 472, https://doi.org/10.1098/rspa.2016.0640 (2016).
Acknowledgements
The authors would like to acknowledge Federico Zontone for help with the CDI measurements, and Pierre Thibault for a discussion on the mode decomposition as implemented in Ptypy50, on which was based the eigen-decomposition for CDI proposed in this article.
Author information
Authors and Affiliations
Contributions
V.F.N. proposed the algorithms, contributed the PyNX library for computations, and wrote the main manuscript text. S.L. and Y.C. provided critical feedback on the procedure and reviewed the manuscript. Y.C. collected the experimental data for Figs. 1–3.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary information
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as 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. The images or other third party material in this article are included in the article’s Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Favre-Nicolin, V., Leake, S. & Chushkin, Y. Free log-likelihood as an unbiased metric for coherent diffraction imaging. Sci Rep 10, 2664 (2020). https://doi.org/10.1038/s41598-020-57561-2
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41598-020-57561-2
Comments
By submitting a comment you agree to abide by our Terms and Community Guidelines. If you find something abusive or that does not comply with our terms or guidelines please flag it as inappropriate.