Image Processing Toolbox    
isgray

Return true for intensity image

Syntax

Description

flag = isgray(A) returns 1 if A is a grayscale intensity image and 0 otherwise.

isgray uses these criteria to decide if A is an intensity image:

Class Support

The input image, A, can be of class logical, uint8, uint16, or double.

See Also

isbw, isind, isrgb


  isflat isind