|
Bsoft
1.9
Bernard's software package
|
Library functions for analyzing diffraction patterns. More...
#include "rwimg.h"Go to the source code of this file.
Functions | |
| int | img_diffraction_origin (Bimage *p, Bimage *pmask) |
| Finds the origin of a powder diffraction pattern by cross-correlation. More... | |
Library functions for analyzing diffraction patterns.
Definition in file img_diffraction.h.
Finds the origin of a powder diffraction pattern by cross-correlation.
| *p | image. |
| *pmask | mask to exclude a region such as a beam stop. |
The diffraction pattern is copied, masked around the set origin to remove background distractions, and cross-correlated with a copy of itself rotated 180 degrees. To overcome the masking bias, the masking and cross-correlation are repeated until the result stabilizes. The origins within the sub-image structures are used for masking. The new origins are written back into the sub-image structures.
Definition at line 30 of file img_diffraction.cpp.