ImageColorSpace

ImageColorSpace[image]
gives the name of the color space of image.

DetailsDetails

  • ImageColorSpace works with 2D and 3D images.
  • Returned color space can be any of the following:
  • "Grayscale"gray level
    "RGB"red, green, blue
    "CMYK"cyan, magenta, yellow, black
    "HSB"hue, saturation, brightness
    "XYZ"CIE XYZ
    "LAB"CIE
    "LCH"CIE
    "LUV"CIE
    Automaticno color space specified

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

Color space of an image:

In[1]:=
Click for copyable input
Out[1]=

ImageColorSpace returns only the name of the color space:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=

For images that have a ColorProfileData as the color space specification, use Options:

In[3]:=
Click for copyable input
Out[3]=

Color space of a 3D image:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2010
(8.0)
| Updated in 2014
(10.0)