ColorCombine
✖
ColorCombine
creates a multichannel image by combining the sequence of channels in the imagei.
combines images that represent the color components specified by colorspace.
Details

- 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 (RGBColor) "CMYK" cyan, magenta, yellow, black (CMYKColor) "HSB" hue, saturation, brightness (Hue) "XYZ" CIE XYZ channels (XYZColor) "LAB" CIE Lab channels (LABColor) "LCH" CIE LCH channels (LCHColor) "LUV" CIE LUV channels (LUVColor) - With a colorspace that requires n color channels, n or n+1 channels may be combined. The n+1
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.

Examples
open allclose allBasic Examples (2)Summary of the most common use cases
Scope (6)Survey of the scope of standard use cases
Combine three binary images into an RGB image:

https://wolfram.com/xid/0i1kwqdkn-b3s6u0

Combine three single-channel images into an HSB image:

https://wolfram.com/xid/0i1kwqdkn-ch7uu3

Combine images into a CMYK image:

https://wolfram.com/xid/0i1kwqdkn-3o13z

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

https://wolfram.com/xid/0i1kwqdkn-55xuyo

Combine four single-frame images into an RGBA image:

https://wolfram.com/xid/0i1kwqdkn-btvjzs

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

https://wolfram.com/xid/0i1kwqdkn-cf1zn4


https://wolfram.com/xid/0i1kwqdkn-cy4ryi

Applications (5)Sample problems that can be solved with this function
Display a channel-wise GradientFilter:

https://wolfram.com/xid/0i1kwqdkn-biswdx

Increase the contrast of the luminance channel only:

https://wolfram.com/xid/0i1kwqdkn-bu5n7a

https://wolfram.com/xid/0i1kwqdkn-o5f9h

Highlight the result of corner filtering:

https://wolfram.com/xid/0i1kwqdkn-qxlmr2

Show corners in red by adding the result to the red channel and subtract it from the green and blue channels:

https://wolfram.com/xid/0i1kwqdkn-eamobe

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

https://wolfram.com/xid/0i1kwqdkn-klsj31

https://wolfram.com/xid/0i1kwqdkn-btle2x

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

https://wolfram.com/xid/0i1kwqdkn-hyc6w2

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

https://wolfram.com/xid/0i1kwqdkn-l134o3

Properties & Relations (2)Properties of the function, and connections to other functions
By default, no explicit color space is assigned to the image:

https://wolfram.com/xid/0i1kwqdkn-sacfvm

https://wolfram.com/xid/0i1kwqdkn-49we9o


https://wolfram.com/xid/0i1kwqdkn-4mpsuy

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

https://wolfram.com/xid/0i1kwqdkn-wc1hln

Images created with ColorCombine have Interleaving->False:

https://wolfram.com/xid/0i1kwqdkn-x4eqkm


https://wolfram.com/xid/0i1kwqdkn-79uvh4

Neat Examples (2)Surprising or curious use cases
Wolfram Research (2008), ColorCombine, Wolfram Language function, https://reference.wolfram.com/language/ref/ColorCombine.html (updated 2012).
Text
Wolfram Research (2008), ColorCombine, Wolfram Language function, https://reference.wolfram.com/language/ref/ColorCombine.html (updated 2012).
Wolfram Research (2008), ColorCombine, Wolfram Language function, https://reference.wolfram.com/language/ref/ColorCombine.html (updated 2012).
CMS
Wolfram Language. 2008. "ColorCombine." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2012. https://reference.wolfram.com/language/ref/ColorCombine.html.
Wolfram Language. 2008. "ColorCombine." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2012. https://reference.wolfram.com/language/ref/ColorCombine.html.
APA
Wolfram Language. (2008). ColorCombine. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ColorCombine.html
Wolfram Language. (2008). ColorCombine. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ColorCombine.html
BibTeX
@misc{reference.wolfram_2025_colorcombine, author="Wolfram Research", title="{ColorCombine}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/ColorCombine.html}", note=[Accessed: 19-April-2025
]}
BibLaTeX
@online{reference.wolfram_2025_colorcombine, organization={Wolfram Research}, title={ColorCombine}, year={2012}, url={https://reference.wolfram.com/language/ref/ColorCombine.html}, note=[Accessed: 19-April-2025
]}