Scripting Resources for DigitalMicrograph™ |
Example: FFT Manipulation II |
|
Function |
Example script which shows how to avoid the problem of images splitting into four transposed quadrants following mathematical operations in frequency space. |
Version |
version:20220703, v1.1 |
Author |
D. R. G. Mitchell |
Acknowledgements |
- |
Comments |
In this example a linear blur vector is convolved with an image in frequency space, to produce a blurred image. The inverse FFT of the product image is split into four quadrants which are transposed NW - SE and NE - SW. This can be avoided by taking the FFT of the product image to produce a real space image, albeit of type complex. Taking the modulus of the image can be used to convert it back to an image of type real. Also demonstrated in this script are copying tags and calibrations, declaring a function prototype, tiling images by displaying them at particular sizes and locations and turning on the autosurvey option. |
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 |