Scripting Resources for DigitalMicrograph™

banner

Dave Mitchell's DigitalMicrograph™ Scripting Website

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

 

Example: Accumulating ROIs and Other Components to Create a Mask
Function

A script which shows how to create a filtering mask from conventional FFT masks and other components such as oval annotations, rectangular and freehand drawn regions of interest.

Version
version:20190329, v1.0
Author
D. R. G. Mitchell
Acknowledgements
-
Comments
Have an image with any of the above annotations present and a mask will be created.
System Requirements
Should be compatible with all recent versions of DigitalMicrograph.
Known Issues
FFT filtering typically requires masks to be symmetric around the centre. This method can create masks which contain assymetric components which may not work well in FFT filtering. Code is supplied here for illustration purposes only.
Supported
Yes
Included Files
Main script file.
Source Code

See attached source code.