Displaying 1 - 10 of 38

Python - Gatan

Produce a colorful map of crystalline regions from a 4D STEM dataset open in DigitalMicrograph using a simple algorithm that finds the location and intensity of the maximum pixel in each pattern. While the result looks like an orientation map, it does not perform proper orientation mapping.

2024

Python - Gatan

Example of adding annotation components to an ImageDisplay. The script uses the front-most displayed image. If none is found, it creates and displays one.

2020

Python - Gatan

Example script showing different types of camera acquisition.

2019

Python - Gatan

Create circularly masked version of the frontmost image.

2020

Python - Gatan

Count the number of negative pixels in the front image.

2019

Python - Gatan

This script creates 3 images in Python and utilizes a DM-script to create and show a color-overlay image. It is an example of how Hybrid scripts can be used to access functionality not (yet) available in the Python language directly. The script shows how image-labels can be used to address images across the two scripts.

2019

Python - Gatan

DigitalMicrograph images can be created from Numpy arrays. DigitalMicrograph image values can be accessed as a Numpy array.

2019

Python - Gatan

Crop an image to a specified size. Only the data is copied.

2020

Python - Gatan

Example script starting a simple DigiScan acquisition via a parameter set. For more details on DigiScan access via scripting also refer to the DM-scripting documentation.

2019

Python - Gatan

Fit or filter drift-measurement data measured from stacks in DigitalMicrograph.

2020

Pages