Scripting Resources for DigitalMicrograph™

Banner Image

Dave Mitchell's DigitalMicrograph™ Scripting Website

Home | Scripts | Examples | Functions | Recent Updates | Tutorials | Resources | Publications | Consulting | Projects | Contact & Bio | Private | Search

Recent Updates

This is a list of script additions to this site in chronological order. Scripts may appear several times where updates or bug fixes get released.

 

2/12/17
An example script which shows how to use these intrinsic image variables.
Example Script
2/12/17
Computes the contrast transfer function from the supplied microscope parameters.
Updated Script
2/12/17
A function which will rebin the passed in image by any value between 1 and 16, including non-integer values.
New Function
       
18/11/17
Drift Tube Scanning Scans the GIF drift tube voltage to and fro as a background thread. New Script
       
24/9/17
Analyses cube axis HAADF images of ferroelectric materials to measure the displacement of atomic columns due to ferroelectric polarisation.
Updated Script
       
17/9/17
Imports x-ray, phase and PCA maps and linescans from Noran System Seven and colours them. Some other map file formats are also supported.
Updated Script
17/9/17
Allows the size, colour and font of the foremost image's scale bar to be changed and propagated to all other open images.
Updated Script
       
12/8/17
Drives an SEM (or TEM) stage in an X-Y raster while capturing scanning images using DigiScan to build up a large area montage.
New Script
       
30/7/17
Applies a Wiener or Average Background Subtraction Filter to remove contributions from amorphous phases to HRTEM and STEM images.
Updated Script
       
15/7/17
Captures sequences of STEM images using either slow or fast acquisition modes. Images can be used for: time-lapse imaging; drift-corrected summing to remove the drift-induced shearing found in single, long-exposure images; making standalone AVI movie files (using ImageJ), enabling the STEM imaging of dynamic effects.
Updated Script
15/7/17
Synthesises a HAADF image which resembles a perovskite structure viewed down the [001] axis.
Updated Script
       
8/7/17
Performs circular Hough transform-based automatic measurement of polycrystalline ring diffraction patterns. Updated in this version to be compatible with GMS 3.
Updated Script
       
18/6/17
Tutorial describing how to install GMS 2 and 3 along with troubleshooting tips when license installation does not go to plan.
Updated Tutorial
       
10/6/17
Function which will excise the largest possible rectangular region from an image which has been rotated.
New Function
       
20/5/17
Synthesises a HAADF image which resembles a perovskite structure viewed down the [001] axis.
New Script
       
8/4/17
An example script to show how to use a background thread to monitor a folder for a change - when the change is detected it triggers a response in DM.
Example Script
       
12/3/17 Change JEOL TEM Screen Page Provides toolbar buttons to select various pages on the JEOL in-built control screen, raise and lower the fluorescent screen and update the calibration on a Live View image. Updated Script
       
19/2/17
Saves all the currently open images to the selected directory as 8 bit TIFF images at full resolution.
Updated Script
19/2/17
Reports the length of the selected line to four decimal place precision.
New Script
       
5/2/17
Removes the horizontal striping which can occur in images, due to fluctuations in the output of cold FEG electron gun.
Updated Script
5/2/17
An example script which shows how to acquire a live image and convert it to a spectrum.
Example Script
       
30/12/16
Function to carry out Gaussian Blurring in Fourier Space
Updated Script
       
19/10/16
Equalise the intensity difference across two halves of an image caused by CCD readout calibration errors.
New Script
       
1/10/16
Scripts to enable the acquisition of through-focus image series in TEM or STEM mode.
New Script
       
10/09/16
Script to create a continuously updating/changing image using a background thread.
New Script
       
03/09/16
A suite of tools with which to process spectra and spectrum images - especially EELS.
Updated Package
       
28/8/16
Automatically measures resolution test images to obtain a resolution value for SEM, STEM etc.
New Script
28/8/16
Measures the fractal dimension of an image to convert regions with different textures into different greyscales.
New Script
       
30/7/16
A function to refine a set of values by removing outliers until a target error is reached or a minimum number of points remain.
New Function
       
17/7/16
A suite of tools for measuring and processing selected area electron diffraction patterns. New functionality added in v4.0
Updated Package
       
16/7/16
An example script which shows how to use the taglist structure to store lists of information.
Example Script
16/7/16

An example script which shows how to use the UID script object.

Example Script
       
5/7/16
A function which will read in a Bruker EDS spectrum file which has been exported in text format.
Updated Script
       
4/7/16
Measures the angle defined by three successive mouse positions on an image.
Updated Script
       
26/6/16
Provides toolbar buttons to select various pages on the JEOL in-built control screen and raise and lower the fluorescent screen.
Updated Script
26/6/16
Report the acquisition times for a series of open images.
New Script
       
12/6/16
A computationally efficient filter for smoothing spectra while retaining peak shape.
New Script
12/6/16
Warps an EELS Momentum-Energy map to remove the distorting effects of GIF aberrations about a horizontal centreline.
New Script
12/6/16
Takes an image area defined by a region of interest (ROI) and cross correlates it with the whole image.
New Script
       
4/6/16
Function to compute the standard deviation (sigma n-1) of an image, or a set of values passed in as pixel values in an image. The number of data points (n), the mean and the sum are also returned.
Updated Function
       
21/5/16
Acquires an image from a CCD camera, then rotates the image and crops it to eliminate the black space introduced by rotation.
New Script
       
10/4/16
Provides a control panel for controlling the HT on older JEOL microscopes which use serial communication interfaces. 'Read the warnings accompanying this script'.
New Script
       
25/3/16
Inverts the contrast of the front-most image. In binary-valued images, 0 become 1 and vice versa. In greyscale images the minimum becomes the maximum and vice versa, with everything in between scaled appropriately.
Updated Script
       
14/3/16 Objective Astigmatism Helper Fits an ROI to a live Camera View image (if the image is not 2^n x 2^n - where n is an integer). It then creates a live reduced FFT fitted with a series of yellow concentric circles, to aid correction of objective astigmatism. Updated Script
       
11/2/16 File Name Creator Creates file names for images and spectra using user-defined terms and microscope information to expedite the saving of data. Updated Script
       
30/1/16
File Name Creator Creates file names for images and spectra using user-defined terms and microscope information to expedite the saving of data. New Script
       
23/1/16
Saves EELS experimental conditions (alpha and beta) to the local computer and allows them to be applied to spectra or spectral images.
New Script
       
16/1/16
A library of DigiScan commands to enable script development of DigiScan-based scripts without working at a microscope system.
New Library
       
10/01/16
Drives the beam tilts of a microscope to enable hollow cone, raster, arc and rocking scanning - as well as manual control.
New Script
       
28/12/15
A suite of software tools with which to process Spectrum Images.
Updated Package
       
9/11/15
Captures a z stack of images acquired at various wavelengths of the CL Spectrometer.
New Script
       
7/11/15
A simple dialog-based script which will recalibrate the front-most diffraction pattern in a range of different units.
New Script
7/11/15
Measure average feature dimensions such as film thicknesses, by drawing multiple lines across the regions of interest.
Updated Script
       
5/11/15
Uses an ellipse fitting method to analyse selected area electron diffraction patterns from polycrystalline materials. Identifies and corrects any elliptical distortion which may be present.
New Package
       
26/9/15
Captures time-lapse STEM images using slow acquisition and fast acquisition stacks using continuous acquisition.
New Script
       
12/9/15
Scales and shifts the front slice of a spectrum containing two overlaid spectra, to minimise the difference between them and display the difference.
New Script
       
5/09/15
A library of faux CL (cathodoluminescence) functions to enable offline script development for CL-based scripts.
Library
5/09/15
Extracts and displays each slice in a composite EELS spectrum as stand-alone spectra.
New Script
       
23/8/15
Analyses cube axis HAADF images of ferroelectric materials to measure the displacement of atomic columns due to ferroelectric polarisation.
New Script
       
15/8/15
Fits a 2D Gaussian to a blob feature - such as diffraction spot or atomic column - to locate its centroid with sub-pixel accuracy.
New Script
       
7/8/15
Function to find the centre of gravity of the passed in image.
Function
       
2/8/15
A suite of scripts with which to automate measurement of images (SEM or Optical) of diffraction gratings or other regular periodic structures.
New Script
2/8/15
Exports an image display as an RGB image.
Example script
       
26/7/15
Creates a 2D Gaussian blob image for fitting to a diffraction spot or atomic column.
Function
       
24/5/15
Creates, splits, sums and aligns 3D stacks, such as a spectrum images.
Updated Script
       
2/5/15
Imports x-ray, phase and PCA maps and CSV Linescans from Noran System Seven and colours them.Some other file formats are also supported.
Updated Script
       
22/4/15
Script which periodically captures CCD or STEM images and uses cross correlation to measure the specimen drift. A cross correlation image, a vector plot (showing the direction and magnitude of the drift) and a plot of the instantaneous drift rate is displayed.
Updated Script
       
11/4/15
Fits a double atan function under EELS white lines to model the continuum, enabling the white line intensities to be determined.
Updated Script
       
4/4/15
Processes x-ray dot maps to eliminate background dots (low density of dots) but retain dots in regions which contain the element of interest (high density of dots) and if necessary - fill in this area by dilation.
Updated Script
       
28/3/15
Imports x-ray, phase and PCA maps from Noran System Seven and colours them.Some other file formats are also supported.
New Script
28/3/15
Exports all open spectra as two column tab delimited text.
Updated Script
       
15/3/15
Function to excise the largest possible central square (power of 2) region of an image.
Function
15/3/15
Shows how to create a sub-dialog from within a dialog with interactive buttons and fields.
Example Script
       
14/3/15
Shows how to call up the colour selection tool and apply the colour to an image.
Example Script
14/3/15
A batch importation utility to read in text files saved in CSV format (comma separated values), from Noran System 7 EDS software.
Updated Script
       
8/3/15
Creates a periodic table with elements as buttons which report chemical information.
Example Script
       
7/3/15
A suite of software tools to process Spectrum Images.
Updated Package
       
28/2/15
Reports the TEM and STEM magnifications used to acquire a folder of images.
Updated Script
28/2/15
Imports the data from a JEOL EDS EMSA spectrum file into a spectrum.
New Script
       
31/1/15
Shows how to add an event listener to an image. This image is subsequently updated by a background thread - which repeatedly triggers the event listener.
Example Script
       
24/1/15
Uses an ROI on an EELS spectrum to fit an exponential background which can be adjusted dynamically.
New Script
24/1/15
Provides buttons to select various pages on the JEOL in-built control screen.
New Script
       
18/1/15
Function to read the Gatan license information. This might be used to protect a script or package of scripts.
New Script
18/1/15
Saves all open images in Gatan .dm3 format, with a common name and counter.
New Script
18/1/15
Shows how to source information from the taggroup of an image and save it as a text file.
Example Script
       
4/1/15
Function to zoom the passed in image to the size specified and centre it within the image frame.
Function
hrtem_filter.htmlchtdiffractionanalysis.html