pysdic.Image.is_grayscale#

property Image.is_grayscale: bool#

[Get] Check if the image is grayscale (2D array).

Note

(height, width, 1) images are still considered color images.

Returns:

True if the image is grayscale, False if it is color.

Return type:

bool