Open-Source Phase Retrieval
- Suite of phase retrieval algorithms, including iterative DPC, ptychograpy, and parallax (tc-BF)
- User-friendly, object-oriented code
- Check out our tutorial notebooks and recent preprint arXiv:2309.05250!
- Differential Phase Contrast
- Parallax (tc-BF)
- Ptychography
dpc = py4DSTEM.process.phase.DPCReconstruction(
datacube=dataset,
energy = 300e3, # eV
).preprocess(
).reconstruct(
).visualize(
)
parallax = py4DSTEM.process.phase.ParallaxReconstruction(
datacube=dataset,
energy = 300e3, # eV
).preprocess(
edge_blend=8, # pixels
).reconstruct(
regularize_shifts=True,
running_average=True,
).visualize(
)
ptycho = SingleslicePtychographicReconstruction(
datacube=dataset,
energy = 300e3, # eV
semiangle_cutoff = 21.4, # mrad
).preprocess(
fit_function = "plane", # de-scan correction
).reconstruct(
max_iter = 8,
step_size = 0.5,
gaussian_filter_sigma = 0.3, # A
).visualize(
)