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

SubpixelrefinementGenerator#

class pyxem.generators.SubpixelrefinementGenerator(dp, vectors)[source]#

Bases: object

Generates subpixel refinement of DiffractionVectors.

Parameters:
  • dp (ElectronDiffraction2D) – The electron diffraction patterns to be refined

  • vectors (DiffractionVectors | ndarray) – Vectors (in calibrated units) to the locations of the spots to be refined. If given as DiffractionVectors, it must have the same navigation shape as the electron diffraction patterns. If an ndarray, the same set of vectors is mapped over all electron diffraction patterns.

References

[1] Pekin et al. Ultramicroscopy 176 (2017) 170-176

Methods

SubpixelrefinementGenerator.center_of_mass_method(...)

Find the subpixel refinement of a peak by assuming it lies at the center of intensity.

SubpixelrefinementGenerator.conventional_xc(...)

Refines the peaks using (phase) cross correlation.

SubpixelrefinementGenerator.local_gaussian_method(...)

Removed in v0.13, please install a version prior to v.0.13 to use.

SubpixelrefinementGenerator.reference_xc(...)

Refines the peaks using (phase) cross correlation with a reference diffraction image.