image thumbnail

STEMDIFF - powder electron diffraction in SEM

version 0.0.3 (491 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 27 Sep 2021

View License

TEST OF SUBMISSION - working files will be uploaded shortly.
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., and Krzyzanek, V. High Resolution Powder Electron Diffraction in Scanning Electron Microscope, Nanomaterials XX (2021).

Cite As

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