Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Data Manipulation > Image Processing & Analysis > Image Representation > ImageChannels >

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
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF