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: Image Summing using Matrices
Function
A function which uses matrix maths to sum a 2D image along either its x or y axis.
Version
version:20221112, v1.0
Author
D. R. G. Mitchell
Acknowledgements
-
Comments

This function uses matrix maths to sum a passed in image along either its x or y axis. In the case of an image such as a CCD image of EELS spectrum, the sum along the y axis (column direction), yields the summed spectrum.

System Requirements
Should be compatible with all recent versions of DigitalMicrograph.
Known Issues
The matrix functions operate on real images. Integer or other image types can result in an untrapped error resulting in an unexpected failure. The function checks the passed in image is of type real. If not, it converts it to type real.
Supported
Yes
Included Files
Main script file.
Source Code

See atached script