Scripting Resources for DigitalMicrograph™

banner

Dave Mitchell's DigitalMicrograph™ Scripting Website

Home | Scripts | Examples | Functions | Recent Updates | Tutorials | Resources | Publications | Consulting | Projects | Contact & Bio |PyJEM| Search

 

RL STEM Filter
Function
Carries out a Richardson-Lucy probe shape deconvolution to sharpen atomic resolution STEM images.
Version
version:20221208, v1.1
Author
D. R. G. Mitchell
Acknowledgements
-
Comments

The (approximately) Gaussian shape of the electron probe used in STEM, results in broadening of atomic columns. This script deconvolutes that Gaussian-shaped probe from the image to sharpen it using the Richardson-Lucy iterative method. This is done in the frequency domain. An option to apply low pass filtering to smooth the result is also given. Detailed descriptons of the various parameters and settings are provided in the header of the script.

It will work on non-2^n x 2^n sized images and if a region of interest is present on the image, only that region will be processed. However, better results are likely obtained by filtering the whole image, then excising the region of interest.

Updated in v1.1 to address a minor bug whereby changes to the probe resolution would not persist at the next launch.

System Requirements
Should be compatible with all versions of DigitalMicrograph from GMS 2.x onwards.
Known Issues

Requires an atomic resolution STEM image to be shown front-most. Processed images have a 'RL STEM Filter' tag appended to them. This will block images being processed twice by this filter. If the tag is deleted, then images may be processed again.

Supported
Yes
Included Files
Script file.
Source Code

See attached script file.