pysdic.Image.is_grayscale#

property Image.is_grayscale: bool | None#

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

Note

3-channel images with only one channel are still considered color images.

Returns:

True if the image is grayscale, False if it is color, or None if not set.

Return type:

Optional[bool]