Image Processing Toolbox | ![]() ![]() |
Syntax
Description
flag = isrgb(A) returns 1 if A is an RGB truecolor image and 0 otherwise.
isrgb
uses these criteria to determine if A
is an RGB image:
A
is of class double
, all values must be in the range [0,1], and A
must be m
-by-n
-by-3.
A
is of class uint16
or uint8
, A
must be m
-by-n
-by-3.
Class Support
A
can be of class logical
, uint8
, uint16
, or double
.
See Also
![]() | isind | label2rgb | ![]() |