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

 

Function: Rotate and Crop
Function
A function which applies a user specified rotation to the passed in image. Black space is added during rotation. This function will calculate the maximum square area on the image which excludes the added black space.
Version
version:20130223, v1.0
Author
D. R. G. Mitchell
Acknowledgements
-
Comments
This is useful when rotating diffraction patterns to align them with their corresponding image.
System Requirements
Tested on GMS 1.x, but should be compatible with GMS 2.x -if not, please advise.
Known Issues
-
Supported
Yes
Included Files
Main script file.
Source Code

See the attached script file.