STEMDIFF - powder electron diffraction in SEM

version 1.0.1 (500 KB) by Radim Skoupy
Toolbox for 4D-STEM data processing enabling the creation of a single 2D powder diffraction image and its 1D radial average.


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.

Cite As

Radim Skoupy (2022). 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

Inspired by:, waitbarParfor

Community Treasure Hunt

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

Start Hunting!