creates a multichannel image by combining the sequence of channels in the imagei.


combines images that represent the color components specified by colorspace.


  • ColorCombine is typically used to combine multiple single-channel images into a multichannel image.
  • ColorCombine[{image1,image2,}] creates an image containing channels obtained by concatenating the sequence of channels from each imagei.
  • ColorCombine works on 2D or 3D images.
  • The images {image1,image2,} must have the same dimensions.
  • ColorCombine[{image1,image2,},colorspace] returns an image of the specified colorspace.
  • The following colorspace specifications can be given:
  • "RGB"red, green, blue
    "RGBA"red, green, blue, alpha
    "CMYK"cyan, magenta, yellow, black
    "HSB"hue, saturation, brightness
    "XYZ"channels of the CIE XYZ color space
    "LAB"channels of the CIE Lab color space
    "LCH"channels of the CIE LCH color space
    "LUV"channels of the CIE LUV color space
  • With a colorspace that requires n color channels, n or n+1 channels may be combined. The n+1^(th) channel is used as an alpha channel.
  • When combining a color image with a grayscale image, ColorCombine creates an image of the same color space with alpha channel.


open allclose all

Basic Examples  (2)

Combine three gray-level images into an RGB image:

Combine three gray-level 3D images into an RGB volume:

Scope  (7)

Combine three binary images into an RGB image:

Combine three single-channel images into an HSB image:

Combine images into a CMYK image:

Color combine channels of a three-channel image rendered using all the supported color spaces:

Combine four single-frame images into an RGBA image:

Combine an RGB image with a single-frame image to get an RGBA image:

Create a six-channel image:

Add an alpha channel to a 3D image that highlights a single slice:

Add an alpha channel in the shape of a Gaussian sphere to a 3D image:

Applications  (4)

Display a channel-wise GradientFilter:

Increase the contrast of the luminance channel only:

Highlight the result of corner filtering:

Replace the red channel of an aerial image with an infrared image to highlight regions with greater biomass density:

Properties & Relations  (2)

By default, no explicit color space is assigned to the image:

Note that three channel images are rendered similarly to RGB images:

Images created with ColorCombine have Interleaving->False:

Neat Examples  (1)

Show color channel permutations:

Introduced in 2008
Updated in 2012