Scripting Resources for DigitalMicrograph™


Dave Mitchell's DigitalMicrograph™ Scripting Website

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


Remove FEG Fluctuations
Reduces the horizontal banding found in images acquired on cold FEG systems, where the emission undergoes stochastic changes.
version:20170204, v2.0
D. R. G. Mitchell
Thanks to William Costello for suggesting and testing this script.
This script creates and vertically averaged image and divides it back into the original, markedly reducing the appearance of such horizontal bands. An alternative approach is to use FFT processing, since the horizontal FEG stripes produce a vertical line in the FFT, which can be readily removed by a narrow vertically oriented wedge mask - albeit with the usual limitations of FFT processing.
System Requirements
Should be compatible with all recent versions of DigitalMicrograph.
Known Issues
Horizontal features in the image, such as scale bars (those burnt into the image, not floating ones found in DM images) will cause artefacts.
Included Files
Main script file.
Source Code

// See attached script