machinevisiontoolbox.Image.maxval

property Image.maxval

Maximum value of image datatype

Returns:

Maximum value

Return type:

int or float

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

Example:

>>> from machinevisiontoolbox import Image
>>> img = Image.Zeros(20, dtype='float32')
>>> img.maxval
3.4028235e+38
>>> img = Image.Zeros(20, dtype='uint8')
>>> img.maxval
255
Seealso:

minval