Live radial profile
Python - Gatan
Code to compute radial-max profiles of the FFT of a live-view image in DigitalMicrograph, producing a 2D display of these profiles over time.
Live simple copy
Python - Gatan
Code to process the live-view image in DigitalMicrograph, producing a copy. This script provides a minimal template for processing data in the live view.
Live thresholding with plots
Python - Gatan
Code to process the live-view image in DigitalMicrograph, producing a binary display. The live image is thresholded, and several morphological operations are applied to create a binary display. Then the largest contiguous bright region is found and circled. A plot of the position of the center of mass of that bright region is also updated live.
Set all scale bars to same style
DigitalMicrograph - Gatan
This automation script will set the style and size of the scale-bar annotations of all currently shown images.
Add scale-bar and intensity-bar
DigitalMicrograph - Gatan
Command example showing how scale-bar and intensity-bar annotations are created on an image.
Iterate layouts
DigitalMicrograph - Gatan
Command example showing how ImageDocument layouts are set.
Monitor a value over time
DigitalMicrograph - Gatan
This example script monitors a value and plots it in regular intervals, creating a growing LinePlot. The script is a template that can easily be modified to create time-logging of any script-accessible value.
Import an image from a text file
DigitalMicrograph - Gatan
Command example script showing how the ImageImportTextData() command is to be used.