Image.ndim# property Image.ndim: int[source]# Number of image array dimensions Returns: number of image dimensions Return type: int Examples >>> from machinevisiontoolbox import Image >>> img = Image.Read('flowers1.png') >>> img.ndim 3 >>> img = Image.Read('street.png') >>> img.ndim 2 See also nplanes shape