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

 

Stack Alignment
Function
Creates, splits, sums and aligns 3D stacks, such as a spectrum images.
Version
version:20150524, v2.0
Author
D. R. G. Mitchell.
Acknowledgements
-
Comments

This script has been completely revamped. It now contains new functionality to create stacks from individual images, and to split stacks into their component images. Stacks can be summed and can also be played in a Movie. Background threading has been added to make this readily controllable from the dialog interface.

Automatic alignment is unchanged, but manual alignment has also been converted into a background thread. This allows alignment to be done intuitively via buttons in the dialog and avoids the use of arcane key strokes. Four methods of manual alignment are provided and the stack can be stepped through quickly to locate any poorly aligned layers.

System Requirements
Tested on GMS 2.30 running on Windows 7, but should be compatible with GMS 1.x. If not, please advise.
Known Issues
Big stacks use up a lot of memory. Avoid using the Copy function if you have very large stacks, and only have one stack open at a time. The Auto function works very well where images are the same or very similar throughout the stack or change slowly. However, in EFTEM spectrum images, the abrupt contrast reversals may cause some issues. Try running the Auto routine first and then refine the aligned stack with the manual process. I have not tested this on Gatan tomography stacks. It should work and all calibrations and tags are copied to the aligned stack.
Supported
Yes
Included Files
Script File.
Source Code

See the downloaded file.