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: Image Transformations using Matrices
Function
An example script which shows how to transform (stretch, rotate etc) a set of coordinates using matrix manipulation.
Version
20190913, v1.0
Author
D. R. G. Mitchell
Acknowledgements
-
Comments
This shows how to do basic some basic coordinate transformations from operations including shift, affine shear, stretch and rotate. This is done using matrix manipulation, which makes it extremely rapid and computationally efficient. The script creates coordinates for points on a circle, it then displays them in an image. It then applies various transformations to these coordinates, displaying the effect.
System Requirements
Should be compatible with all recent versions of DigitalMicrograph.
Known Issues
-
Supported
Yes
Included Files
Main script file.
Source Code

see attached script