ImageChannels

ImageChannels[image]

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

ImageChannels[video]

gives the number of channels present in frames of a video.

Details

  • Number of channels present in typical images are:
  • grayscale1
    grayscale with alpha2
    RGB3
    RGB with alpha4
    CMYK4
    CMYK with alpha5

Examples

open allclose all

Basic Examples  (1)

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

Scope  (6)

Channels in a grayscale image:

Channels in an RGBA image:

Channels in a CMYK image:

A 9-channel random image:

Channels of a video:

Channels in a 3D RGB image:

Wolfram Research (2008), ImageChannels, Wolfram Language function, https://reference.wolfram.com/language/ref/ImageChannels.html (updated 13).

Text

Wolfram Research (2008), ImageChannels, Wolfram Language function, https://reference.wolfram.com/language/ref/ImageChannels.html (updated 13).

CMS

Wolfram Language. 2008. "ImageChannels." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 13. https://reference.wolfram.com/language/ref/ImageChannels.html.

APA

Wolfram Language. (2008). ImageChannels. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ImageChannels.html

BibTeX

@misc{reference.wolfram_2021_imagechannels, author="Wolfram Research", title="{ImageChannels}", year="13", howpublished="\url{https://reference.wolfram.com/language/ref/ImageChannels.html}", note=[Accessed: 24-May-2022 ]}

BibLaTeX

@online{reference.wolfram_2021_imagechannels, organization={Wolfram Research}, title={ImageChannels}, year={13}, url={https://reference.wolfram.com/language/ref/ImageChannels.html}, note=[Accessed: 24-May-2022 ]}