Scripting Resources for DigitalMicrograph™

banner

Dave Mitchell's DigitalMicrograph™ Scripting Website

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

 

Remove FEG Fluctuations
Function
Reduces the horizontal banding found in images acquired on cold FEG systems, where the emission undergoes stochastic changes.
Version
version:20170204, v2.0
Author
D. R. G. Mitchell
Acknowledgements
Thanks to William Costello for suggesting and testing this script.
Comments
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.
Supported
Yes
Included Files
Main script file.
Source Code

// See attached script