This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

ColorSeparate

Updated In 8 Graphic
ColorSeparate[image]
gives a list of single-channel images corresponding to each of the color channels in image.
ColorSeparate
gives a list of images corresponding to the components of colorspace.
  • ColorSeparate works with images containing any number of color channels.
  • The following color space specifications can be given:
"Grayscale","Gray","Intensity"graylevel intensity
"RGB"red, green, blue
"RGBA"red, green, blue, alpha
"CMYK"cyan, magenta, yellow, black
"Cyan","Magenta","Yellow","Black"cyan, magenta, yellow, black
"HSB"hue, saturation, brightness
"Red","Green","Blue"red, green, or blue channel
"Hue"hue
"Saturation"saturation
"Brightness"brightness
"Mean"mean of all channels
"Alpha"alpha channel
Separate an RGB image into three channels:
Separate the channels of an HSB image:
Separate an RGB image into three channels:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
 
Separate the channels of an HSB image:
In[1]:=
Click for copyable input
Out[1]=
Extract the blue channel:
Extract HSB channels from an RGB image:
Extract red objects by subtracting the blue and green color planes from the red color plane:
New in 7 | Last modified in 8