This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
processing:clean-diamond-anvil-cell-data [2019/09/03 15:10] smerkel |
processing:clean-diamond-anvil-cell-data [2019/09/03 16:13] (current) smerkel |
||
---|---|---|---|
Line 9: | Line 9: | ||
===== Shadows ===== | ===== Shadows ===== | ||
+ | |||
+ | Diamond anvil cells have a limited opening and create shadows due to the seat supporting the diamonds. | ||
+ | |||
+ | We we started multigrain crystallography experiments, we though this was going to be a problem and created a script called [[software:remove-shadow|timelessDACShadow]] to do so. | ||
+ | |||
+ | 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 ===== | ||
Line 65: | Line 71: | ||
As a test, the image below shows the [[processing:search_for_peaks|sample peaks we extracted]] from the final image. This would not have been possible on the raw diffraction image. | As a test, the image below shows the [[processing:search_for_peaks|sample peaks we extracted]] from the final image. This would not have been possible on the raw diffraction image. | ||
- | [{{ :processing:diamondremoval:diamond-removed-median-peaks.jpg?nolink&400 | Peaks extracted from the diffraction image, after running the diamond removal script }}] | + | [{{ :processing:diamondremoval:diamond-removed-median-peaks.jpg?direct&300 | Peaks extracted from the diffraction image, after running the diamond removal script }}] |
+ | |||
+ | ==== Inpainting ==== | ||
+ | |||
+ | By default, the [[software:timelessDiamondSpotRemoval|timelessDiamondSpotRemoval script]] replaces the masked region with the median intensity of the image. Sometimes, this can lead to problems. | ||
+ | |||
+ | In such case, you can use //inpainting// which will try to fill the gap as well as possible. This is done by adding ''--inpaint True'' to the command line arguments. | ||
+ | |||
+ | 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:diamondremoval:diamond-removed-median.jpg?direct&300 | Diffraction image, after running the diamond removal script and replacing masked values with the image median}}] | ||
+ | [{{ :processing:diamondremoval:diamond-removed-inpaint.jpg?direct&300|Same diffraction image, after running the diamond removal script and replacing masked values with inpainting}}] | ||