Scale 2D image
DigitalMicrograph - Gatan
Scale a 2D image by a requested factor either using sampling or bi-linear interpolation (demonstrate warp command).
Scale all images to a given value range
DigitalMicrograph - Gatan
This script normalizes the intensity values of all open images to a defined range [0 - max].
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.
Show system IP configuration
DigitalMicrograph - Gatan
Short script showing how command prompt output can be created and read into a DigitalMicrograph script using the command line 'ipconfig.exe' as an example.
Simple dialogs
Python - Gatan
The input command presents a simple dialog and returns the entered string. Some other simple prompted dialogs are provided by the plugin.
Sine pattern
DigitalMicrograph - Gatan
Demonstrate the usage of icol and irow and setting a different color lookup table.
Sort images onto separate workspaces
DigitalMicrograph - Gatan
This automation script iterates over all currently shown images and selects them one by one. The user is asked to press either ALT or CTRL to move the shown image to one of two newly created workspaces, or SHIFT to end the script.
Spherisize
DigitalMicrograph - Gatan
Take a square image, wrap it around a sphere, and then return the resulting image.
Start an external executable
DigitalMicrograph - Gatan
Mini-example of how the command LaunchExternalProcess() is used. This command can execute any external application. It provides a powerful method to access hardware outside the DigitalMicrograph environment from within DigitalMicrograph.