Scripting Resources for DigitalMicrograph™ |
Function: Hanning Window |
|
Function |
The Hanning Window filtering function creates a bell-shaped function with a value of unity in the centre and zero at the edges. |
Version |
version:20190325, v1.0 |
Author |
D. R. G. Mitchell |
Acknowledgements |
- |
Comments |
The bell-shaped Hanning function is used to create a filtering mask. This is typically applied when cross-correlating two images. The Hanning function will eliminate edge features and instead emphasise those in the centre. Images to be cross-correlated (eg for drift correction) are often first filtered with an edge-enhancing filter such as the Sobel filter, to improve the sensitivity of cross-correlation. The Hanning Window is then applied to these filtered images before cross-correlation, to eliminate any near-edge features from the analysis. |
System Requirements |
Should be compatible with all recent versions of DigitalMicrograph. |
Known Issues |
- |
Supported |
Yes |
Included Files |
Main script file. |
Source Code |
See attached source code. |