Image.maxval#
- property Image.maxval: int | float[source]#
Maximum value of image datatype
For the datatype of the image, return its maximum possible value
Examples
>>> from machinevisiontoolbox import Image >>> img = Image.Zeros(size=20, dtype='float32') >>> img.maxval np.float32(3.4028235e+38) >>> img = Image.Zeros(size=20, dtype='uint8') >>> img.maxval 255
See also