find_beam_center_blur#
- pyxem.utils.diffraction.find_beam_center_blur(z, sigma, upsample_factor=1.0, order=1, **kwargs)[source]#
Estimate direct beam position by blurring the image with a large Gaussian kernel and finding the maximum.
- Parameters:
sigma (float) – Sigma value for Gaussian blurring kernel.
upsample_factor (float) – Factor by which to upsample the image before blurring and finding the maximum. Passed to the
zoomparamter of thescipy.ndimage.zoom()function.order (int) – Interpolation order for the zoom operation. Default is 1 (linear). Passed to the
orderparameter of thescipy.ndimage.zoom()function.**kwargs (dict) – Additional keyword arguments to be passed to the scipy.ndimage.zoom function, such as order for interpolation order.
- Returns:
center – numpy.ndarray [x, y] containing indices of estimated direct beam positon.
- Return type: