scipy.ndimage.measurements.extrema

scipy.ndimage.measurements.extrema(input, labels=None, index=None)

Calculate the minimums and maximums of the values of an array at labels, along with their positions.

Labels must be None or an array of the same dimensions as the input.

Index must be None, a single label or sequence of labels. If none, all values where label is greater than zero are used.

Returns: minimums, maximums, min_positions, max_positions

Previous topic

scipy.ndimage.measurements.center_of_mass

Next topic

scipy.ndimage.measurements.find_objects

This Page