scipy.ndimage.measurements.histogram(input, min, max, bins, labels=None, index=None)

Calculate a histogram of of the array.

The histogram is defined by its minimum and maximum value and the number of bins.

The index parameter is a single label number or a sequence of label numbers of the objects to be measured. If index is None, all values are used where labels is larger than zero.