find_hot_pixels#
- pyxem.utils.diffraction.find_hot_pixels(z, threshold_multiplier=500, mask=None)[source]#
Find single pixels which have much larger values compared to neighbors.
Finds pixels which have a gradient larger than the threshold multiplier. These are extremely sharp peaks with values on average much larger than the surrounding values.
- Parameters:
z (numpy.ndarray) – Frame to operate on
threshold_multiplier (scaler) – Used to threshold the dif.
mask (numpy.ndarray, optional) – Array with bool values. The True values will be masked (i.e. ignored). Must have the same shape as the two last dimensions in dask_array.