Check out the Hyperspy Workshop May 13-17, 2024 Online

apply_gain_normalisation#

Diffraction2D.apply_gain_normalisation(dark_reference, bright_reference, inplace=True, *args, **kwargs)[source]#

Apply gain normalization to experimentally acquired electron diffraction patterns.

Parameters:
  • dark_reference (pyxem.signals.ElectronDiffraction2D) – Dark reference image.

  • bright_reference (pyxem.signals.Diffraction2D) – Bright reference image.

  • inplace (bool) – If True (default), this signal is overwritten. Otherwise, returns a new signal.

  • *args – Arguments to be passed to hyperspy.api.signals.BaseSignal.map().

  • **kwargs – Keyword arguments to be passed to hyperspy.api.signal.BaseSignal.map().