Show all scripts

Reveal Weak Reflections

Category: Image Manipulation
Description: A simple script designed to process diffraction patterns to reveal weak reflections. The script does this by taking the reciprocal cube root (ie image ^-0.333) of the image. The cube root greatly compresses the range of values, and the use of a negative power inverts the image - it is easier to see weak black spots on a white background. You may want to adjust the histogram to further enhance the spots. If the script it run with ALT key held down, the option to change the exponent is given.
Comments: Contains a logarithm workaround to deal with an issue in DM where the power function (ie A**b) can't handle difficult values like -0.333.
Acknowledgements: thx
Script version: 1.0
DM/GMS version: 3.8.2
Script written as a function: No
Source: Show code
Download Source Code: Download
Download Zip File: Download