DigitalMicrograph drift data - Fit
Python - Gatan
Fit or filter drift-measurement data measured from stacks in Gatan Microscopy Suite.
DigitalMicrograph drift data - Interpolate
Python - Gatan
Interpolate drift-measurement data measured from stacks in Gatan Microscopy Suite.
DigitalMicrograph drift data - Plot
Python - Gatan
Replot drift-measurement data measured from stacks in Gatan Microscopy Suite as a trajectory.
Get front two images
Python - Gatan
Demonstration of accessing the two frontmost images in GMS.
Live difference
Python - Gatan
Code to process the live-view image in DigitalMicrograph, producing a difference image. Two exponentially weighted moving averages are computed, and the absolute value of the difference between them is returned.
Live max FFT
Python - Gatan
Code to process the live-view image in DigitalMicrograph, producing an FFT-like display. A grid of small FFTs is computed from the image, and then rather than averaging the FFTs together, the maximum across all FFTs is taken pixel-by-pixel.
Live noise reduction
Python - Gatan
Code to process the live-view image in DigitalMicrograph, producing a new filtered display. A median and/or Gaussian blur can be applied.
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.