shoot.num.find_signed_peaks_2d

shoot.num.find_signed_peaks_2d#

shoot.num.find_signed_peaks_2d(data, wx, wy, paral=False)[source]#

Find local extrema (minima and maxima) in 2D field

Parameters:
  • data (ndarray) – 2D data array to search for peaks.

  • wx (int) – Window width in x direction for local extrema detection.

  • wy (int) – Window width in y direction for local extrema detection.

  • paral (bool, default False) – Use parallel implementation if True, serial if False.

Returns:

  • minima (ndarray) – Array of (i, j) indices for local minima.

  • maxima (ndarray) – Array of (i, j) indices for local maxima.