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

Calculate the mean of the values of an array at labels.

Labels must be None or an array that can be broadcast to the input.

Index must be None, a single label or sequence of labels. If None, the mean for all values where label is greater than 0 is calculated.

Previous topic


Next topic


This Page