Image.minval#

property Image.minval: int | float[source]#

Minimum value of image datatype

Returns:

Minimum value

Return type:

int or float

For the datatype of the image, return its minimum possible value

Example:

>>> from machinevisiontoolbox import Image
>>> img = Image.Zeros(size=20, dtype='float32')
>>> img.minval
np.float32(-3.4028235e+38)
>>> img = Image.Zeros(size=20, dtype='uint8')
>>> img.minval
0
Seealso:

maxval