| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Image Processing Toolbox |
| Contents | Index |
| Learn more about Image Processing Toolbox |
flag = isgray(A)
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.
The input image A can be of class logical, uint8, uint16, or double.
![]() | isflat | isicc | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |