Image.min#
- Image.min(**kwargs: Any) generic | ndarray[source]#
Minimum value of all pixels
- Parameters:
kwargs (dict) – additional keyword arguments passed to
numpy.nanmin- Returns:
minimum value
Example:
>>> from machinevisiontoolbox import Image >>> img = Image.Read('flowers1.png') >>> img.min() # min over all planes np.uint8(0) >>> img.min(axis=(0,1)) # per-plane min array([0, 0, 0], dtype=uint8)
Note
The return value type is the same as the image type.
NaN values are ignored
For
axisremember the axes are in NumPy order: 0=rows, 1=columns, 2=planes.