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

center_of_mass_method#

SubpixelrefinementGenerator.center_of_mass_method(square_size)[source]#

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

Parameters:

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

Returns:

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

Return type:

DiffractionVectors