median
- scipy.ndimage.median(input, labels=None, index=None)
Calculate the median of the values of an array over labeled regions.
- Parameters:
- input : array_like
Array_like of values. For each region specified by labels, the median value of input over the region is computed.