PeakCallerScipy.oversample_peaks#

static PeakCallerScipy.oversample_peaks(scores, peak_positions, oversampling_factor=8)#

Refines peaks positions in the corresponding score space.

Parameters:
scoresBackendArray

The d-dimensional array representing the score space.

peak_positionsBackendArray

An array of shape (n, d) containing the peak coordinates to be refined, where n is the number of peaks and d is the dimensionality of the score space.

oversampling_factorint, optional

The oversampling factor for Fourier transforms. Defaults to 8.

Returns:
BackendArray

An array of shape (n, d) containing the refined subpixel coordinates of the peaks.

Notes

Floating point peak positions are determined by oversampling the scores around peak_positions. The accuracy of refinement scales with 1 / oversampling_factor.

References

[2]

Manuel Guizar-Sicairos, Samuel T. Thurman, and James R. Fienup, “Efficient subpixel image registration algorithms,” Optics Letters 33, 156-158 (2008). DOI:10.1364/OL.33.000156