This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

ImageChannels

ImageChannels[image]
gives the number of channels present in the data for the Image object image.
This gives the number of channels present in an RGB image:
Channels in an RGBA image:
A 9-channel random image:
This gives the number of channels present in an RGB image:
In[1]:=
Click for copyable input
Out[1]=
 
Channels in an RGBA image:
In[1]:=
Click for copyable input
Out[1]=
 
A 9-channel random image:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
New in 7