1
Bayesian phase retrieval for image reconstruction using fast Fourier transforms in Stan��
�Brian Ward, Bob Carpenter, and David Barmherzig�June 23, 2023
2
Source
(X-Ray)
Grid of detectors
Specimen
Reference
3
Ideal
Given a reference 𝑅, data 𝑌 = | 𝓕( 𝑋 + 𝑅 ) |2
where 𝓕 is an oversampled Fourier transform
Recover the source image 𝑋
In practice
Measurement error (low photon counts)
Missing data (beamstop)
4
Specimen
Reference
𝑋 + 𝑅
5
| 𝓕( 𝑋 + 𝑅 ) |2
6
Measurement model
Observed photon flux 𝑌̃ is distributed
𝑌̃ ~ Poisson( 𝑁𝑝𝑌 / 𝑌̅ )
where
𝑌̅ is the average value of 𝑌
𝑁𝑝 is the average photon flux per pixel
In practice, 𝑁𝑝 must be small (<10)
7
𝑁𝑝 = 1
8
9
Missing data
A beamstop prevents damage to sensors, occludes lowest frequencies
We use a beamstop of size 25x25
10
Final Data
11
Aside: How much data is missing
Take 𝓕( 𝑋 + 𝑅 ), occlude the highest frequencies, and invert*
12
13
14
MLE solution
15
Sampling
16
17
18
19
Bonus Slides
20
Numerical comparison
Metric | MLE | Posterior Mean | Draw #100 |
RMSE | 0.212 | 0.217 | 0.276 |
Structural Similarity (SSIM) | 0.371 | 0.408 | 0.223 |
RMSE: Lower is better
SSIM: Higher is better
21
Type
complex_matrix
22
Speed
Model can be more vectorized than written on previous slides
The slowest part of this model is the FFT
23
Varying 𝑁𝑝
24
Varying prior standard deviation