ImageChannels

ImageChannels[image]

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

Details

Examples

open allclose all

Basic Examples  (1)

This gives the number of channels present in an RGB image:

Scope  (5)

Channels in a grayscale image:

Channels in an RGBA image:

Channels in a CMYK image:

A 9-channel random image:

Channels in a 3D RGB image:

Introduced in 2008
 (7.0)
 |
Updated in 2012
 (9.0)