machinevisiontoolbox.Image.isint

property Image.isint

Image has integer values?

Returns:

True if image has integer pixel values

Return type:

bool

Example:

>>> from machinevisiontoolbox import Image
>>> img = Image.Read('flowers1.png')
>>> img.isint
True
>>> img = Image.Read('flowers1.png', dtype='float32')
>>> img.isint
False
Seealso:

isfloat isbool