Image.max#
- Image.max(**kwargs: Any) generic | ndarray[source]#
Maximum value of all pixels
- Parameters:
kwargs (dict) – additional keyword arguments passed to
numpy.nanmax- Returns:
maximum value
Example:
>>> from machinevisiontoolbox import Image >>> img = Image.Read('flowers1.png') >>> img.max() # max over all planes np.uint8(255) >>> img.max(axis=(0,1)) # per-plane max array([255, 255, 255], 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.
- Seealso: