isgray - True for grayscale image

Syntax

flag = isgray(A)

Description

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

isgray uses these criteria to decide whether 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

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS