- cupyx.scipy.ndimage.extrema(input, labels=None, index=None)#
Calculate the minimums and maximums of the values of an array at labels, along with their positions.
A tuple that contains the following values.
minimums (cupy.ndarray): Values of minimums in each feature.
maximums (cupy.ndarray): Values of maximums in each feature.
min_positions (tuple or list of tuples): Each tuple gives the N-D coordinates of the corresponding minimum.
max_positions (tuple or list of tuples): Each tuple gives the N-D coordinates of the corresponding maximum.