ImageChannels

ImageChannels[image]
gives the number of channels present in the data for the Image or Image3D object image.

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples  (4)Basic Examples  (4)

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]=

Channels in a 3D RGB image:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2008
(7.0)
| Updated in 2012
(9.0)