ColorSpace

ColorSpace

is an option for Image and related functions that specifies the color space to which color values refer.

Details

  • Color spaces supported by Image and Image3D include:
  • "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
    ColorProfileData[][i]color profile with the specified rendering intent i
  • With ColorSpace->ColorProfileData[][i], rendering intent can be specified. Possible settings are "PerceptualProfile" (default), "SaturationProfile", "MediaRelativeColorimetricProfile", and "ICCAbsoluteColorimetricProfile".

Examples

open allclose all

Basic Examples  (3)

Create an RGB image from an array of data:

Change the interpretation of the channel values:

Color space can be stored as a ColorProfileData object:

Properties & Relations  (2)

Use ImageColorSpace to extract the color space of an image:

Use ColorConvert to switch between color spaces:

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

Text

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

BibTeX

@misc{reference.wolfram_2020_colorspace, author="Wolfram Research", title="{ColorSpace}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/ColorSpace.html}", note=[Accessed: 10-April-2021 ]}

BibLaTeX

@online{reference.wolfram_2020_colorspace, organization={Wolfram Research}, title={ColorSpace}, year={2014}, url={https://reference.wolfram.com/language/ref/ColorSpace.html}, note=[Accessed: 10-April-2021 ]}

CMS

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

APA

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