| Image Processing Toolbox™ | ![]() |
flag = isgray(A)
Note This function is obsolete and may be removed in future versions. |
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:
If A is of class double, all values must be in the range [0,1], and the number of dimensions of A must be 2.
If A is of class uint16 or uint8, the number of dimensions of A must be 2.
Note A four-dimensional array that contains multiple grayscale images returns 0, not 1. |
The input image A can be of class logical, uint8, uint16, or double.
![]() | isflat | isicc | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |