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: