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

reference_xc#

SubpixelrefinementGenerator.reference_xc(square_size, reference_dp, upsample_factor)[source]#

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

Parameters:
  • square_size (int) – Length (in pixels) of one side of a square the contains the peak to be refined.

  • reference_dp (ndarray) – Same shape as a single diffraction image

  • upsample_factor (int) – Factor by which to upsample the patterns

Returns:

vector_out – DiffractionVectors containing the refined vectors in calibrated units with the same navigation shape as the diffraction patterns.

Return type:

DiffractionVectors