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.
LiveView linear profile
Python - Gatan
Compute ROI-based profiles over time from the LiveView image in Gatan Microscopy Suite.
LiveView radial FFT profile
Python - Gatan
Compute radial-max profiles over time from the FFT of the LiveView image in Gatan Microscopy Suite.
Make Gaussians
DigitalMicrograph - Gatan
Generate a 1D and 2D Gaussian distribution (demonstrate function overload).
Merge images
DigitalMicrograph - Gatan
Combine two images of different intensity levels into one. Useful to merge diffraction patterns of different exposure times.
Microscope access
Python - Gatan
Example script basic microscope access. For further info please also refer to the DM-scripting documentation on microscope access.
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.
Output DM Python help
Python - Gatan
Output Python commands of DigitalMicrograph. Output command-specific help.