Interactive histogram
DigitalMicrograph - Gatan
Compute a histogram of the frontmost image and allow interactive change of histogram bins.
IS dataset radial FFT profile
Python - Gatan
Compute radial-max profiles over time from the FFT of in-situ video datasets in Gatan Microscopy Suite.
Iterate layouts
DigitalMicrograph - Gatan
Command example showing how ImageDocument layouts are set.
Launching an external application and regularly checking if it is still running
DigitalMicrograph - Gatan
Example script showing how the external application Notepad.exe can be launched. The script regularly polls whether or not Notepad.exe is still open so that actions can be performed once the external application is closed.
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 FFT color map
Python - Gatan
Code to process the live-view image in DigitalMicrograph, producing a series of maps of crystalline regions in real-time. It computes a grid of small FFTs from each image. It then treats this grid similar to a 4D STEM data cube, where it finds the brightest spot in each FFT and displays its orientation and intensity as an updating color map.
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 radial profile Diff or FFT
Python - Gatan
Compute radial-max profiles of either the FFTs of HRTEM images or diffraction patterns over time. You can compute profiles from the 2D live-view image in DigitalMicrograph or in-situ 2D image data played back via the In-Situ Player. The result is a single 2D display of these profiles over time, with time as one dimension and radius as the other. Profiles are computed as often as possible.