This is documentation for an old release of SciPy (version 0.7.). Read this page in the documentation of the latest stable release (version 1.15.1).
minimum() nominally computes the minimum pixel value for a stack of identically shaped images.
>>> a = np.arange(4)
>>> a = a.reshape((2,2))
>>> arrays = [a*16, a*4, a*2, a*8]
>>> minimum(arrays)
array([[0, 2],
[4, 6]])
>>> minimum(arrays, nhigh=1)
array([[0, 2],
[4, 6]])
>>> minimum(arrays, nlow=1)
array([[ 0, 4],
[ 8, 12]])
>>> minimum(arrays, outtype=np.float32)
array([[ 0., 2.],
[ 4., 6.]], dtype=float32)
>>> bm = np.zeros((4,2,2), dtype=np.bool8)
>>> bm[2,...] = 1
>>> minimum(arrays, badmasks=bm)
array([[ 0, 4],
[ 8, 12]])
>>> minimum(arrays, badmasks=threshhold(arrays, low=10))
array([[ 0, 16],
[16, 12]])