machinevisiontoolbox.Image.size

property Image.size

Image size

Returns:

Size of image (width, height)

Return type:

tuple

Example:

>>> from machinevisiontoolbox import Image
>>> img = Image.Read('flowers1.png')
>>> img.size
(640, 426)
Note:

The dimensions are in a different order compared to shape.

Seealso:

width height shape