STEMDIFF - powder electron diffraction in SEM

Toolbox for 4D-STEM data processing enabling the creation of a single 2D powder diffraction image and its 1D radial average.
68 Downloads
Updated 20 May 2022

View License

The presented toolbox enables fast, easy to use and staight forward method for nano crystal identification using a pixelated STEM detector in a scanning electron microscope. The STEMDIFF toolbox was developed with emphasis on data enhancement and peak to peak resolution because of low pixel resolution of common 2D STEM detectors used in a SEM. The package is prepared for analysis of nanocrystalic samples placed on thin support layer (both on TEM grids; we assume amorphous support layer). The focused electron beam is transmitted and partialy scattered by the sample itself and above mentioned support layer which induces strong background in the data. From mathematical point of view, it is convolution of two independent functions (nano-crystal diffraction patterns, scattering in amorphous supporting layer). It's clear that pure diffraction data can be restored by deconvolution of parasitic electron scattering.
When you use this code in your research, please cite the paper:
Slouf, M.; Skoupy, R.; Pavlova, E.; Krzyzanek, V. High Resolution Powder Electron Diffraction in Scanning Electron Microscopy. Materials 2021, 14, 7550. https://doi.org/10.3390/ma14247550

Cite As

Radim Skoupy (2024). STEMDIFF - powder electron diffraction in SEM (https://www.mathworks.com/matlabcentral/fileexchange/99819-stemdiff-powder-electron-diffraction-in-sem), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2020b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: radialavg.zip, waitbarParfor

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.1

new documentation

1.0

The first full version has several improvements:
- centre detection options
- data selection for PSF can be adjusted anywhere in the dataset
- works with binary files (.dat) or image files (.tif)

0.0.4

Update of related article.

0.0.3

Simplification

0.0.2

Simplification

0.0.1

loading...

0.0.0