# scipy.stsci.image.minimum¶

minimum() nominally computes the minimum pixel value for a stack of identically shaped images.

arrays specifies a sequence of inputs arrays, which are nominally a
stack of identically shaped images.
output may be used to specify the output array. If none is specified,
either arrays[0] is copied or a new array of type ‘outtype’ is created.
outtype specifies the type of the output array when no ‘output’ is
specified.
nlow specifies the number of pixels to be excluded from minimum
on the low end of the pixel stack.
nhigh specifies the number of pixels to be excluded from minimum
on the high end of the pixel stack.
indicates that a particular pixel is not to be included in the minimum calculation.
```>>> 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
array([[ 0,  4],
[ 8, 12]])
array([[ 0, 16],
[16, 12]])
```

#### Previous topic

scipy.stsci.image.median

#### Next topic

scipy.stsci.image.threshhold