machinevisiontoolbox.Image.dtype
- property Image.dtype
Datatype of image
- Returns:
NumPy datatype of image
- Return type:
Example:
>>> from machinevisiontoolbox import Image >>> img = Image.Read('flowers1.png') >>> img.dtype dtype('uint8') >>> img = Image.Read('flowers1.png', dtype='float32') >>> img.dtype dtype('float32')