processing:clean-diamond-anvil-cell-data
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| processing:clean-diamond-anvil-cell-data [2019/02/12 15:51] – smerkel | processing:clean-diamond-anvil-cell-data [2019/09/03 18:13] (current) – smerkel | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| * single-crystal diffraction spots from the diamond anvils, | * single-crystal diffraction spots from the diamond anvils, | ||
| * additional diffraction from very small grains (powder rings), pressure media, etc. | * additional diffraction from very small grains (powder rings), pressure media, etc. | ||
| + | |||
| + | ===== Shadows ===== | ||
| + | |||
| + | Diamond anvil cells have a limited opening and create shadows due to the seat supporting the diamonds. | ||
| + | |||
| + | We we started multigrain crystallography experiments, | ||
| + | |||
| + | As a matter of fact, this is not very useful as there simply nothing in these regions. You can probably leave the shadows as they are. | ||
| ===== Diamond spots removal ===== | ===== Diamond spots removal ===== | ||
| + | |||
| + | ==== General idea ==== | ||
| Processing of the single-crystal diffraction spots from the diamond anvils is performed using the [[software: | Processing of the single-crystal diffraction spots from the diamond anvils is performed using the [[software: | ||
| Line 22: | Line 32: | ||
| - create a mask based on the detected diamond diffraction spots, | - create a mask based on the detected diamond diffraction spots, | ||
| - expand the mask in X, Y, and ω to account for the fact that the real diamond diffraction spots are wider and appear over wider omega ranges than detected by the above steps. | - expand the mask in X, Y, and ω to account for the fact that the real diamond diffraction spots are wider and appear over wider omega ranges than detected by the above steps. | ||
| + | |||
| + | '' | ||
| + | |||
| + | In addition, you can define a disk, at the center of the image, in which nothing should be removed. This option is for samples with very intense diffraction spots on the inner rings which could be confused with diamond spots based on intensity criteria. | ||
| + | |||
| + | ==== Step by step instructions ==== | ||
| + | |||
| + | In the first round, you should test the spot detection. This is performed by running '' | ||
| + | |||
| + | In a second round , you use '' | ||
| + | |||
| + | Third step: '' | ||
| + | |||
| + | Final step: '' | ||
| + | |||
| + | ==== Detailed example ==== | ||
| + | |||
| + | [{{: | ||
| + | [{{ : | ||
| + | |||
| + | In the above example, the '' | ||
| + | * remove the median | ||
| + | * erase the image region with diamond spots. | ||
| + | The exact command with ran was | ||
| + | | ||
| + | |||
| + | The parameters were chosen as follow | ||
| + | * '' | ||
| + | * We processed images '' | ||
| + | * The file with the median image was '' | ||
| + | * We saved the new images in '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * a threshold of 0.75 (relative units) worked well. | ||
| + | Note that the number of pixels used to grow the mask may be different from the final size of the mask. The final mask will be larger than your settings (there is a scaling applied somewhere). | ||
| + | |||
| + | As a test, the image below shows the [[processing: | ||
| + | |||
| + | [{{ : | ||
| + | |||
| + | ==== Inpainting ==== | ||
| + | |||
| + | By default, the [[software: | ||
| + | |||
| + | In such case, you can use // | ||
| + | |||
| + | The script will be significantly slower, but gaps will be filled with values matching the mask's surroundings. As a matter of fact, we have had little use of this option but, at least, it is available. | ||
| + | [{{: | ||
| + | [{{ : | ||
processing/clean-diamond-anvil-cell-data.1549983099.txt.gz · Last modified: (external edit)
