Jump to content

Color space: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
See also: + Color solid
 
(238 intermediate revisions by more than 100 users not shown)
Line 1: Line 1:
{{short description|Standard that defines a specific range of colors}}
{{Refimprove|date=September 2007}}
{{About|color spaces|the YCbCr to RGB conversion matrices|YCbCr}}
[[Image:Colorspace.png|thumb|right|A comparison of the chromaticities enclosed by some color spaces.]]
[[File:CIE1931xy gamut comparison.svg|thumb|Comparison of some RGB and CMYK chromaticity gamuts on a [[CIE 1931 color space|CIE 1931]] xy [[chromaticity diagram]]]]
A [[color model]] is an abstract mathematical model describing the way [[color]]s can be represented as [[tuple]]s of numbers, typically as three or four values or ''color components'' (e.g. [[RGB color model|RGB]] and [[CMYK color model|CMYK]] are color models). However, a color model with no associated mapping function to an [[absolute color space]] is a more or less arbitrary color system with no connection to any globally understood system of color interpretation.
[[File:Colorspace.png|thumb|right|A comparison of the chromaticities enclosed by some color spaces]]


A '''color space''' is a specific organization of [[color]]s. In combination with color profiling supported by various physical devices, it supports reproducible representations of color{{snd}}whether such representation entails an [[analog signal|analog]] or a [[Digital data|digital]] representation. A color space may be arbitrary, i.e. with physically realized colors assigned to a set of physical [[Palette (computing)|color swatches]] with corresponding assigned [[color name]]s (including discrete numbers in{{snd}}for example{{snd}}the [[Pantone]] collection), or structured with mathematical rigor (as with the [[Natural Color System|NCS System]], [[Adobe RGB color space|Adobe RGB]] and [[sRGB]]). A "color space" is a useful conceptual tool for understanding the color capabilities of a particular device or digital file. When trying to reproduce color on another device, color spaces can show whether shadow/highlight detail and color saturation can be retained, and by how much either will be compromised.
Adding a certain mapping function between the color model and a certain reference color space results in a definite "footprint" within the reference color space. This "footprint" is known as a [[gamut]], and, in combination with the color model, defines a new '''color space'''. For example, [[Adobe RGB color space|Adobe RGB]] and [[sRGB color space|sRGB]] are two different [[absolute color space]]s, both based on the RGB model.


A "[[color model]]" is an abstract mathematical model describing the way colors can be represented as [[tuple]]s of numbers (e.g. triples in [[RGB color model|RGB]] or quadruples in [[CMYK color model|CMYK]]); however, a color model with no associated mapping function to an [[#Absolute color space|absolute color space]] is a more or less arbitrary color system with no connection to any globally understood system of color interpretation. Adding a specific mapping function between a color model and a reference color space establishes within the reference color space a definite "footprint", known as a <dfn>[[gamut]]</dfn>, and for a given color model, this defines a color space. For example, Adobe RGB and sRGB are two different absolute color spaces, both based on the RGB color model. When defining a color space, the usual reference standard is the [[CIELAB]] or [[CIE 1931 color space|CIEXYZ]] color spaces, which were specifically designed to encompass all colors the average human can see.<ref name="Gravesen2015">{{cite journal |last1=Gravesen |first1=Jens|date=November 2015 |title=The Metric of Color Space |url=http://www2.mat.dtu.dk/people/J.Gravesen/pub/48-2015-colour.pdf |journal=Graphical Models |volume=82 |issue= |pages=77–86 |doi=10.1016/j.gmod.2015.06.005 |s2cid=33425148 |access-date= 28 November 2023}}</ref>
In the most generic sense of the definition above, color spaces can be defined without the use of a color model. These spaces, such as [[Pantone]], are in effect a given set of names or numbers which are defined by the existence of a corresponding set of physical color swatches. This article focuses on the mathematical model concept.


Since "color space" identifies a particular combination of the color model and the mapping function, the word is often used informally to identify a color model. However, even though identifying a color space automatically identifies the associated color model, this usage is incorrect in a strict sense. For example, although several specific color spaces are based on the [[RGB color model]], there is no such thing as the singular [[RGB color space]].
==Understanding the concept==
[[File:RGB and CMYK comparison.png|thumb|right|A comparison of RGB and CMYK color models. This image demonstrates the difference between how colors will look on a computer monitor (RGB) compared to how they will reproduce in a CMYK print process.]]


==History==
A wide range of colors can be created by the [[primary colors]] of pigment ([[cyan]] (C), [[magenta]] (M), [[yellow]] (Y), and [[black]] (K)). Those colors then define a specific color space. To create a three-dimensional representation of a color space, we can assign the amount of magenta color to the representation's X [[coordinate axis|axis]], the amount of cyan to its Y axis, and the amount of yellow to its Z axis. The resulting 3-D space provides a unique position for every possible color that can be created by combining those three pigments.
[[File:YoungHelm.jpg|thumb| [[Thomas Young (scientist)|Thomas Young]] and [[Hermann Helmholtz]] assumed that the eye's [[retina]] consists of three different kinds of light receptors for red, green and blue.]] In 1802, [[Thomas Young (scientist)|Thomas Young]] postulated the existence of three types of [[Photoreceptors, microbial|photoreceptors]] (now known as [[cone cell]]s) in the eye, each of which was sensitive to a particular range of visible light.<ref>{{cite journal|last=Young |first=T. |date=1802 |title=Bakerian Lecture: On the Theory of Light and Colours |journal=Phil. Trans. R. Soc. Lond. |volume=92 |pages=12–48 |doi=10.1098/rstl.1802.0004|doi-access=free }}</ref> [[Hermann von Helmholtz]] developed the [[Young–Helmholtz theory]] further in 1850: that the three types of cone photoreceptors could be classified as short-preferring ([[blue]]), middle-preferring ([[green]]), and long-preferring ([[red]]), according to their response to the [[wavelength]]s of light striking the [[retina]]. The relative strengths of the signals detected by the three types of cones are interpreted by the [[brain]] as a visible color. But it is not clear that they thought of colors as being points in color space.


The color-space concept was likely due to [[Hermann Grassmann]], who developed it in two stages. First, he developed the idea of [[vector space]], which allowed the algebraic representation of geometric concepts in ''n''-dimensional [[space]].<ref name=Fearnley>[http://www.maa.org/sites/default/files/pdf/upload_library/22/Ford/DesmondFearnleySander.pdf ''Hermann Grassmann and the Creation of Linear Algebra'']</ref> Fearnley-Sander (1979) describes Grassmann's foundation of linear algebra as follows:<ref>{{Cite journal |last=Fearnley-Sander |first=Desmond |date=December 1979 |title=Hermann Grassmann and the Creation of Linear Algebra |url=https://www.tandfonline.com/doi/full/10.1080/00029890.1979.11994921 |journal=The American Mathematical Monthly |language=en |volume=86 |issue=10 |pages=809–817 |doi=10.1080/00029890.1979.11994921 |issn=0002-9890}}</ref>
However, this is not the only possible color space. For instance, when colors are displayed on a computer monitor, they are usually defined in the RGB ([[red]], [[green]] and [[blue]]) color space. This is another way of making nearly the same colors (limited by the reproduction medium, such as the phosphor (CRT) or filters and backlight (LCD)), and red, green and blue can be considered as the X, Y and Z axes. Another way of making the same colors is to use their [[Hue]] (X axis), their [[Saturation (color theory)|Saturation]] (Y axis), and their [[brightness]] Value (Z axis). This is called the [[HSV color space]]. Many color spaces can be represented as three-dimensional (X,Y,Z) values in this manner, but some have more, or fewer dimensions, and some, such as Pantone, cannot be represented in this way at all.


{{cquote|The definition of a [[vector space|linear space]] (vector space)... became widely known around 1920, when [[Hermann Weyl]] and others published formal definitions. In fact, such a definition had been given thirty years previously by [[Giuseppe Peano|Peano]], who was thoroughly acquainted with Grassmann's mathematical work. Grassmann did not put down a formal definition—the language was not available—but there is no doubt that he had the concept.}}
== Notes ==
When formally defining a color space, the usual reference standard is the [[Lab color space|CIELAB]] or [[CIE 1931 color space|CIEXYZ]] color spaces, which were specifically designed to encompass all colors the average human can see


With this conceptual background, in 1853, Grassmann published a theory of how colors mix; it and its three color laws are still taught, as [[Grassmann's laws (color science)|Grassmann's law]].<ref name="Grassman1853">{{cite journal | author = Grassmann H | year = 1853 | title = Zur Theorie der Farbenmischung | url = https://zenodo.org/record/1423628| journal = Annalen der Physik und Chemie| volume = 89 | issue = 5| pages = 69–84 | doi = 10.1002/andp.18531650505 | bibcode = 1853AnP...165...69G }}</ref> {{cquote|As noted first by Grassmann... the light set has the structure of a cone in the infinite-dimensional linear space. As a result, a quotient set (with respect to metamerism) of the light cone inherits the conical structure, which allows color to be represented as a convex cone in the 3- D linear space, which is referred to as the color cone.<ref name="Logvinenko2015">{{cite journal | author = Logvinenko A. D. | year = 2015 | title = The geometric structure of color | journal = Journal of Vision | volume = 15 | issue = 1| pages = 16| doi = 10.1167/15.1.16 | pmid = 25589300 | doi-access = free }}</ref>}}
Since "color space" is a more specific term for a certain ''combination'' of a color model plus a mapping function, the term "color space" tends to be used to also identify color models, since identifying a color space automatically identifies the associated color model. Informally, the two terms are often used interchangeably, though this is strictly incorrect. For example, although several specific color spaces are based on the RGB model, there is no such thing as ''the'' RGB color space.


==Examples==
Since any color space defines colors as a function of the absolute reference frame, color spaces, along with device profiling, allow reproducible representations of color, in both [[analog signal|analogue]] and [[digital]] representations.
[[File:RGB and CMYK comparison.png|thumb|right|A comparison of [[CMYK]] and [[RGB color model]]s. This image demonstrates the difference between how colors will look on a computer monitor (RGB) compared to how they might reproduce in a particular CMYK print process.]]


Colors can be created in [[printing]] with [[color]] spaces based on the [[CMYK color model]], using the subtractive [[primary colors]] of [[pigment]] ([[cyan|'''c'''yan]], [[magenta|'''m'''agenta]], [[yellow|'''y'''ellow]], and [[black|blac'''k''']]). To create a three-dimensional representation of a given color space, we can assign the amount of magenta color to the representation's X [[coordinate axis|axis]], the amount of cyan to its Y axis, and the amount of yellow to its Z axis. The resulting 3-D space provides a unique position for every possible color that can be created by combining those three pigments.
==Conversion ==

Colors can be created on [[computer monitor]]s with color spaces based on the [[RGB color model]], using the additive primary colors ([[red]], [[green]], and [[blue]]). A three-dimensional representation would assign each of the three colors to the X, Y, and Z axes. Colors generated on a given monitor will be limited by the reproduction medium, such as the phosphor (in a [[CRT monitor]]) or filters and backlight ([[LCD]] monitor).

Another way of creating colors on a monitor is with an [[HSL and HSV|HSL or HSV]] color model, based on [[hue]], [[Saturation (color theory)|saturation]], [[brightness]] (value/lightness). With such a model, the variables are assigned to [[cylindrical coordinates]].

Many color spaces can be represented as three-dimensional values in this manner, but some have more, or fewer dimensions, and some, such as [[Pantone#Pantone Color Matching System|Pantone]], cannot be represented in this way at all.

==Conversion==
{{main|Color translation}}
{{main|Color translation}}
Color space conversion is the translation of the representation of a color from one basis to another. This typically occurs in the context of converting an image that is represented in one color space to another color space, the goal being to make the translated image look as similar as possible to the original.
Color space conversion is the translation of the representation of a color from one basis to another. This typically occurs in the context of converting an image that is represented in one color space to another color space, the goal being to make the translated image look as similar as possible to the original.


== Density ==
==RGB density==


The RGB color model is implemented in different ways, depending on the capabilities of the system used. By far the most common general-used incarnation {{As of|2006|lc=on}} is the 24-[[bit]] implementation, with 8 bits, or 256 discrete levels of color per [[channel (digital image)|channel]]. Any color space based on such a 24-bit RGB model is thus limited to a range of 256×256×256 ≈ 16.7 million colors. Some implementations use 16 bits per component for 48 bits total, resulting in the same [[gamut]] with a larger number of distinct colors. This is especially important when working with wide-gamut color spaces (where most of the more common colors are located relatively close together), or when a large number of digital filtering algorithms are used consecutively. The same principle applies for any color space based on the same color model, but implemented in different [[Color depth|bit depths]].
The RGB color model is implemented in different ways, depending on the capabilities of the system used. The most common incarnation in general use {{As of|2021|lc=on}} is the 24-[[bit]] implementation, with 8 bits, or 256 discrete levels of color per [[channel (digital image)|channel]].<ref>{{Cite web |last=Kyrnin |first=Mark |date=2021-08-26 |title=Why You Need to Know What Color Bit Depth Your Display Supports |url=https://www.lifewire.com/lcd-displays-and-bit-color-depth-833083 |access-date=2022-07-04 |website=Lifewire |language=en}}</ref> Any color space based on such a 24-bit RGB model is thus limited to a range of 256×256×256 ≈ 16.7 million colors. Some implementations use 16 bits per component for 48 bits total, resulting in the same [[gamut]] with a larger number of distinct colors. This is especially important when working with wide-gamut color spaces (where most of the more common colors are located relatively close together), or when a large number of digital filtering algorithms are used consecutively. The same principle applies for any color space based on the same color model, but implemented at different [[Color depth|bit depths]].


==Lists==
== Partial list of color spaces ==
{{main|List of color spaces and their uses}}
{{main|List of color spaces and their uses}}
[[CIE 1931 color space|CIE 1931 XYZ color space]] was one of the first attempts to produce a color space based on measurements of human color perception (earlier efforts were by [[James Clerk Maxwell]], König & Dieterici, and Abney at [[Imperial College]])<ref name="Wright1981">William David Wright, ''50 years of the 1931 CIE Standard Observer''. Die Farbe, '''29''':4/6 (1981).</ref> and it is the basis for almost all other color spaces. Derivatives of the CIE XYZ space include [[CIELUV]], [[CIE 1964 color space|CIEUVW]], and [[CIELAB]].
[[CIE 1931 color space|CIE 1931 XYZ color space]] was one of the first attempts to produce a color space based on measurements of human color perception (earlier efforts were by [[James Clerk Maxwell]], König & Dieterici, and Abney at [[Imperial College]])<ref name="Wright1981">William David Wright, ''50 years of the 1931 CIE Standard Observer''. Die Farbe, '''29''':4/6 (1981).</ref> and it is the basis for almost all other color spaces. The [[CIE 1931 color space#CIE RGB color space|CIERGB]] color space is a linearly-related companion of CIE XYZ. Additional derivatives of CIE XYZ include the [[CIELUV]], [[CIE 1964 color space|CIEUVW]], and [[CIELAB]].


=== Generic color models ===
===Generic===
{{main|Color models}}
{{main|Color model}}
[[Image:AdditiveColor.svg|thumbnail|200px|Additive color mixing: Three overlapping lightbulbs in a vacuum, adding together to create white.]]
[[File:AdditiveColor.svg|thumbnail|200px|Additive color mixing: Three overlapping light bulbs in a vacuum, adding together to create white.]]
[[Image:SubtractiveColor.svg|thumbnail|200px|Subtractive color mixing: Three splotches of paint on white paper, subtracting together to turn the paper black.]]
[[File:SubtractiveColor.svg|thumbnail|200px|Subtractive color mixing: Three splotches of paint on white paper, subtracting together to turn the paper black.]]


[[RGB color space|RGB]] uses [[additive color]] mixing, because it describes what kind of ''light'' needs to be ''emitted'' to produce a given color. Light is added together to create form from out of the darkness. RGB stores individual values for red, green and blue. [[RGBA color space|RGBA]] is RGB with an additional channel, alpha, to indicate transparency.
[[RGB color space|RGB]] uses [[additive color]] mixing, because it describes what kind of ''light'' needs to be ''emitted'' to produce a given color. RGB stores individual values for red, green and blue. [[RGBA color space|RGBA]] is RGB with an additional channel, alpha, to indicate transparency. Common color spaces based on the RGB model include [[sRGB]], [[Adobe RGB color space|Adobe RGB]], [[ProPhoto RGB color space|ProPhoto RGB]], [[scRGB]], and [[CIE 1931 color space#CIE RGB color space|CIE RGB]].


[[CMYK]] uses [[subtractive color]] mixing used in the printing process, because it describes what kind of [[ink]]s need to be applied so the light ''reflected'' from the [[Substrate (printing)|substrate]] and through the inks produces a given color. One starts with a white substrate (canvas, page, etc.), and uses ink to subtract color from white to create an image. CMYK stores ink values for cyan, magenta, yellow and black. There are many CMYK color spaces for different sets of inks, substrates, and press characteristics (which change the dot gain or transfer function for each ink and thus change the appearance).
Common color spaces based on the RGB model include [[sRGB]], [[Adobe RGB color space|Adobe RGB]] and [[ProPhoto RGB color space|ProPhoto RGB]].


[[YIQ]] was formerly used in [[NTSC]] ([[North America]], [[Japan]] and elsewhere) television broadcasts for historical reasons. This system stores a [[Luma (video)|luma]] value roughly analogous to (and sometimes incorrectly identified as)<ref>Charles Poynton, "YUV and 'luminance' considered harmful: a plea for precise terminology in video", [http://poynton.com/papers/YUV_and_luminance_harmful.html online], author-edited version of Appendix A of Charles Poynton, ''Digital Video and HDTV: Algorithms and Interfaces'', Morgan–Kaufmann, 2003. [https://books.google.com/books?id=ra1lcAwgvq4C&dq=luma+luminance+709+601&pg=PA289 online]</ref><ref>Charles Poynton, [http://poynton.com/notes/video/Constant_luminance.html Constant Luminance], 2004</ref> [[luminance (relative)|luminance]], along with two [[chrominance|chroma]] values as approximate representations of the relative amounts of blue and red in the color. It is similar to the [[YUV]] scheme used in most video capture systems<ref>{{cite web | author = Dean Anderson | title = Color Spaces in Frame Grabbers: RGB vs. YUV | url = http://www.sensoray.com/support/frame_grabber_capture_modes.htm | access-date = 2008-04-08 | archive-url = https://web.archive.org/web/20080726175751/http://www.sensoray.com/support/frame_grabber_capture_modes.htm | archive-date = 2008-07-26 | url-status = dead }}</ref> and in [[PAL]] ([[Australia]], [[Europe]], except [[France]], which uses [[SECAM]]) television, except that the YIQ color space is rotated 33° with respect to the YUV color space and the color axes are swapped. The [[YDbDr]] scheme used by SECAM television is rotated in another way. <!--
[[CMYK]] uses [[subtractive color]] mixing used in the printing process, because it describes what kind of [[inks]] need to be applied so the light ''reflected'' from the [[Substrate (printing)|substrate]] and through the inks produces a given color. One starts with a white substrate (canvas, page, etc.), and uses ink to subtract color from white to create an image. [[CMYK]] stores ink values for cyan, magenta, yellow and black. There are many CMYK color spaces for different sets of inks, substrates, and press characteristics (which change the dot gain or transfer function for each ink and thus change the appearance).

[[YIQ]] was formerly used in [[NTSC]] (North America, Japan and elsewhere) television broadcasts for historical reasons. This system stores a luminance value with two chrominance values, corresponding approximately to the amounts of blue and red in the color. It is similar to the [[YUV]] scheme used in most video capture systems<ref>{{cite web | author = Dean Anderson | title = Color Spaces in Frame Grabbers: RGB vs. YUV | url = http://www.sensoray.com/support/frame_grabber_capture_modes.htm | accessdate = 2008-04-08}}</ref> and in [[PAL]] (Australia, Europe, except France, which uses [[SECAM]]) television, except that the YIQ color space is rotated 33° with respect to the YUV color space. The [[YDbDr]] scheme used by [[SECAM]] television is rotated in another way. <!--
It would be nice if someone could find out how exactly the YDbDr color system is rotated.
It would be nice if someone could find out how exactly the YDbDr color system is rotated.
-->
-->
Line 50: Line 57:
[[YPbPr]] is a scaled version of YUV. It is most commonly seen in its digital form, [[YCbCr]], used widely in [[Video compression|video]] and [[image compression]] schemes such as [[MPEG]] and [[JPEG]].
[[YPbPr]] is a scaled version of YUV. It is most commonly seen in its digital form, [[YCbCr]], used widely in [[Video compression|video]] and [[image compression]] schemes such as [[MPEG]] and [[JPEG]].


[[xvYCC]] is a new international digital video color space standard published by the [[International Electrotechnical Commission|IEC]] (IEC 61966-2-4). It is based on the ITU BT.601 and [[Rec. 709|BT.709]] standards but extends the gamut beyond the R/G/B primaries specified in those standards.
[[xvYCC]] is a new international digital video color space standard published by the [[International Electrotechnical Commission|IEC]] (IEC 61966-2-4). It is based on the [[International Telecommunication Union|ITU]] [[Rec. 601|BT.601]] and [[Rec. 709|BT.709]] standards but extends the gamut beyond the R/G/B primaries specified in those standards.


[[HSV color space|HSV]] ('''h'''ue, '''s'''aturation, '''v'''alue), also known as HSB (hue, saturation, '''b'''rightness) is often used by artists because it is often more natural to think about a color in terms of hue and saturation than in terms of additive or subtractive color components. HSV is a transformation of an RGB colorspace, and its components and colorimetry are relative to the RGB colorspace from which it was derived.
[[HSL and HSV|HSV]] ('''h'''ue, '''s'''aturation, '''v'''alue), also known as HSB (hue, saturation, '''b'''rightness) is often used by artists because it is often more natural to think about a color in terms of hue and saturation than in terms of additive or subtractive color components. HSV is a transformation of an RGB color space, and its components and colorimetry are relative to the RGB color space from which it was derived.


[[HSL color space|HSL]] ('''h'''ue, '''s'''aturation, '''l'''ightness/'''l'''uminance), also known as HLS or HSI (hue, saturation, '''i'''ntensity) is quite similar to [[HSV color space|HSV]], with "lightness" replacing "brightness". The difference is that the ''brightness'' of a pure color is equal to the brightness of white, while the ''lightness'' of a pure color is equal to the lightness of a medium gray.
[[HSL and HSV|HSL]] ('''h'''ue, '''s'''aturation, '''l'''ightness/'''l'''uminance), also known as HLS or HSI (hue, saturation, '''i'''ntensity) is quite similar to [[HSL and HSV|HSV]], with "lightness" replacing "brightness". The difference is that the ''brightness'' of a pure color is equal to the brightness of white, while the ''lightness'' of a pure color is equal to the lightness of a medium gray.


=== Commercial color spaces ===
===Commercial===


* [[Munsell color system]]
* [[Munsell color system]]
* [[Pantone#Pantone Color Matching System|Pantone Matching System (PMS)]]
* [[Natural Color System|Natural Color System (NCS)]]
* [[Natural Color System|Natural Color System (NCS)]]


=== Special-purpose color spaces ===
===Special-purpose===


* The [[RG Chromaticity]] space is used in [[Computer vision]] applications. It shows the color of light (red, yellow, green etc.), but not its intensity (dark, bright).
* The [[RG Chromaticity]] space is used in [[computer vision]] applications. It shows the color of light (red, yellow, green etc.), but not its intensity (dark, bright).
* The [[TSL color space]] (Tint, Saturation and Luminance) is used in [[face detection]].


=== Obsolete color spaces ===
===Obsolete===


Early color spaces had two components. They largely ignored blue light because the added complexity of a 3-component process provided only a marginal increase in fidelity when compared to the jump from monochrome to 2-component color.
Early color spaces had two components. They largely ignored blue light because the added complexity of a 3-component process provided only a marginal increase in fidelity when compared to the jump from monochrome to 2-component color.


* [[RG color space|RG]] for early [[Technicolor]] film
* [[RG color space|RG]] for early [[Technicolor]] film
* [[RGK color space|RGK]] for early color printing
* [[RG color models#Subtractive RGK|RGK]] <!-- color space --> for early color printing

==Absolute color space==

In [[colorimetry|color science]], there are two meanings of the term '''absolute color space''':
* A color space in which the perceptual difference between colors is directly related to [[color difference|distances between colors]] as represented by points in the color space, i.e. a [[uniform color space]].<ref>{{cite book | title = Industrial Color Testing: Fundamentals and Techniques | author = Hans G. Völz | publisher = Wiley-VCH | url = https://books.google.com/books?id=-0jl6ai59MMC&q=%22absolute+color+space%22&pg=PA40 | isbn = 3-527-30436-3 | year = 2001 }}</ref><ref>{{cite book | title = Industrial Inorganic Pigments |author1=Gunter Buxbaum |author2=Gerhard Pfaff | publisher = Wiley-VCH | url = https://books.google.com/books?id=_OrB0ew_HgAC&q=%22absolute+color+space%22&pg=PA24 | isbn = 3-527-30363-4 | year = 2005 }}</ref>
* A color space in which colors are unambiguous, that is, where the interpretations of colors in the space are colorimetrically defined without reference to external factors.<ref>{{cite book | title = Java 2D Graphics | author = Jonathan B. Knudsen | publisher = O'Reilly | url = https://archive.org/details/java2dgraphics0000knud | url-access = registration | page = [https://archive.org/details/java2dgraphics0000knud/page/172 172] | quote = absolute color space. | isbn = 1-56592-484-3 | year = 1999 }}</ref><ref>{{cite book | title = Human Vision and Electronic Imaging XII |author1=Bernice Ellen Rogowitz |author2=Thrasyvoulos N Pappas |author3=Scott J Daly | publisher = SPIE | year = 2007 | isbn = 978-0-8194-6605-1 | url = https://books.google.com/books?id=Ne9RAAAAMAAJ&q=%22absolute+color+space%22 }}</ref>

In this article, we concentrate on the second definition.

[[CIE 1931 color space|CIEXYZ]], [[sRGB]], and [[ICtCp]] are examples of absolute color spaces, as opposed to a generic [[RGB color space]].

A non-absolute color space can be made absolute by defining its relationship to absolute colorimetric quantities. For instance, if the red, green, and blue colors in a monitor are measured exactly, together with other properties of the monitor, then RGB values on that monitor can be considered as absolute. The [[CIELAB color space|CIE 1976 L*, a*, b* color space]] is sometimes referred to as absolute, though it also needs a [[white point]] specification to make it so.<ref>{{cite book | title = Optical Sensors and Sensing Systems for Natural Resources and Food Safety and Quality |author1=Yud-Ren Chen |author2=George E. Meyer |author3=Shu-I. Tu | publisher = SPIE | year = 2005 | isbn = 0-8194-6020-6 | url = https://books.google.com/books?id=7IxTAAAAMAAJ&q=%22absolute+color+space%22+l-a-b }}</ref>

A popular way to make a color space like RGB into an absolute color is to define an [[International Color Consortium|ICC]] profile, which contains the attributes of the RGB. This is not the only way to express an absolute color, but it is the standard in many industries. RGB colors defined by widely accepted profiles include sRGB and [[Adobe RGB color space|Adobe RGB]]. The process of adding an [[ICC profile]] to a graphic or document is sometimes called ''tagging'' or ''embedding''; tagging, therefore, marks the absolute meaning of colors in that graphic or document.

===Conversion errors===
{{main|Color translation}}
A color in one absolute color space can be converted into another absolute color space, and back again, in general; however, some color spaces may have [[gamut]] limitations, and converting colors that lie outside that gamut will not produce correct results. There are also likely to be rounding errors, especially if the popular range of only 256 distinct values per component ([[8-bit color]]) is used.

One part of the definition of an absolute color space is the viewing conditions. The same color, viewed under different natural or artificial [[lighting]] conditions, will look different. Those involved professionally with color matching may use viewing rooms, lit by standardized lighting.

Occasionally, there are precise rules for converting between non-absolute color spaces. For example, [[HSL and HSV]] spaces are defined as mappings of RGB. Both are non-absolute, but the conversion between them should maintain the same color. However, in general, converting between two non-absolute color spaces (for example, RGB to [[CMYK color model|CMYK]]) or between absolute and non-absolute color spaces (for example, RGB to L*a*b*) is almost a meaningless concept.

===Arbitrary spaces===
A different method of defining absolute color spaces is familiar to many consumers as the swatch card, used to select paint, fabrics, and the like. This is a way of agreeing a color between two parties. A more standardized method of defining absolute colors is the [[Pantone|Pantone Matching System]], a proprietary system that includes swatch cards and recipes that commercial printers can use to make inks that are a particular color.


==See also==
==See also==
{{Commons category|Color spaces}}
* [[Color theory]]
* [[List of colors]]


* {{annotated link|Color model}}
==References==
* {{annotated link|List of color spaces and their uses}}
* {{annotated link|Color theory}}
* {{annotated link|Lists of colors}}
* {{annotated link|Primary color}}
* {{annotated link|Color solid}}


==References==
<references/>
{{reflist}}


==External links==
==External links==
{{Commons category|Color spaces}}
* [http://www.poynton.com/ColorFAQ.html Color FAQ], Charles Poynton
* [http://www.poynton.com/ColorFAQ.html Color FAQ], Charles Poynton
* [https://web.archive.org/web/20020802012056/http://www.physics.sfasu.edu/astro/color.html Color Science], Dan Bruton
* [http://www.colourware.co.uk/cpfaq.htm FAQ about color physics], Stephen Westland
* [https://web.archive.org/web/20090306062959/http://www4.ncsu.edu/~rgkuehni/PDFs/ColSp.pdf Color Spaces], Rolf G. Kuehni (October 2003)
* [http://www.physics.sfasu.edu/astro/color.html Color Science], Dan Bruton
* [https://web.archive.org/web/20090306063001/http://ldos.fe.uni-lj.si/docs/documents/20030929092037_markot.pdf Colour spaces – perceptual, historical and applicational background], Marko Tkalčič (2003)
* [http://www4.ncsu.edu/~rgkuehni/PDFs/ColSp.pdf Color Spaces], Rolf G. Kuehni (October 2003)
* [https://web.archive.org/web/20120404024930/http://www.equasys.de/colorformat.html Color formats] for image and video processing – [https://web.archive.org/web/20120403123714/http://www.equasys.de/colorconversion.html Color conversion] between RGB, YUV, YCbCr and YPbPr.
* [http://ldos.fe.uni-lj.si/docs/documents/20030929092037_markot.pdf Colour spaces - perceptual, historical and applicational background], Marko Tkalčič (2003)
* [https://archive.today/20130125092509/http://pixfc-sse.googlecode.com/ PixFC-SSE] {{dash}} C library of SSE-optimised color format conversions.
* [http://www.equasys.de/colorformat.html Color formats] for image and video processing - [http://www.equasys.de/colorconversion.html Color conversion] between RGB, YUV, YCbCr and YPbPr.
* [http://pixfc-sse.googlecode.com C library] of SSE-optimised color format conversions.
* Konica Minolta Sensing: [http://www2.konicaminolta.eu/eu/Measuring/pcc/en/index.html Precise Color Communication]
* Konica Minolta Sensing: [http://www2.konicaminolta.eu/eu/Measuring/pcc/en/index.html Precise Color Communication]
* Higham, Nicholas J., [http://eprints.ma.man.ac.uk/2380 ''Color Spaces and Digital Imaging''], from The Princeton Companion to Applied Mathematics


{{Color space}}
{{Color space|state=expanded}}
{{Color topics}}
{{Color topics}}
{{Photography}}
{{Photography}}
{{Compression methods}}


[[Category:Color space| ]]
[[Category:Color space| ]]
[[Category:Color]]
[[Category:Color schemes]]
[[Category:Image processing]]
[[Category:Image processing]]
[[Category:Photometry]]
[[Category:Photometry]]
[[Category:1853 introductions]]

[[Category:Data compression]]
[[ar:فضاء لوني]]
[[ca:Espai de color]]
[[de:Farbraum]]
[[es:Espacio de color]]
[[fr:Espace colorimétrique]]
[[ko:색 공간]]
[[hi:वर्ण व्योम]]
[[it:Spazio dei colori]]
[[nl:Kleurruimte]]
[[ja:色空間]]
[[no:Fargerom]]
[[pl:Przestrzeń barw]]
[[pt:Espaço de cores]]
[[ru:Цветовое пространство]]
[[sd:رنگ پولار]]
[[sk:Farebný systém]]
[[fi:Väriavaruus]]
[[sv:Färgrymd]]
[[zh:色彩空間]]

Latest revision as of 00:37, 15 December 2024

Comparison of some RGB and CMYK chromaticity gamuts on a CIE 1931 xy chromaticity diagram
A comparison of the chromaticities enclosed by some color spaces

A color space is a specific organization of colors. In combination with color profiling supported by various physical devices, it supports reproducible representations of color – whether such representation entails an analog or a digital representation. A color space may be arbitrary, i.e. with physically realized colors assigned to a set of physical color swatches with corresponding assigned color names (including discrete numbers in – for example – the Pantone collection), or structured with mathematical rigor (as with the NCS System, Adobe RGB and sRGB). A "color space" is a useful conceptual tool for understanding the color capabilities of a particular device or digital file. When trying to reproduce color on another device, color spaces can show whether shadow/highlight detail and color saturation can be retained, and by how much either will be compromised.

A "color model" is an abstract mathematical model describing the way colors can be represented as tuples of numbers (e.g. triples in RGB or quadruples in CMYK); however, a color model with no associated mapping function to an absolute color space is a more or less arbitrary color system with no connection to any globally understood system of color interpretation. Adding a specific mapping function between a color model and a reference color space establishes within the reference color space a definite "footprint", known as a gamut, and for a given color model, this defines a color space. For example, Adobe RGB and sRGB are two different absolute color spaces, both based on the RGB color model. When defining a color space, the usual reference standard is the CIELAB or CIEXYZ color spaces, which were specifically designed to encompass all colors the average human can see.[1]

Since "color space" identifies a particular combination of the color model and the mapping function, the word is often used informally to identify a color model. However, even though identifying a color space automatically identifies the associated color model, this usage is incorrect in a strict sense. For example, although several specific color spaces are based on the RGB color model, there is no such thing as the singular RGB color space.

History

[edit]
Thomas Young and Hermann Helmholtz assumed that the eye's retina consists of three different kinds of light receptors for red, green and blue.

In 1802, Thomas Young postulated the existence of three types of photoreceptors (now known as cone cells) in the eye, each of which was sensitive to a particular range of visible light.[2] Hermann von Helmholtz developed the Young–Helmholtz theory further in 1850: that the three types of cone photoreceptors could be classified as short-preferring (blue), middle-preferring (green), and long-preferring (red), according to their response to the wavelengths of light striking the retina. The relative strengths of the signals detected by the three types of cones are interpreted by the brain as a visible color. But it is not clear that they thought of colors as being points in color space.

The color-space concept was likely due to Hermann Grassmann, who developed it in two stages. First, he developed the idea of vector space, which allowed the algebraic representation of geometric concepts in n-dimensional space.[3] Fearnley-Sander (1979) describes Grassmann's foundation of linear algebra as follows:[4]

The definition of a linear space (vector space)... became widely known around 1920, when Hermann Weyl and others published formal definitions. In fact, such a definition had been given thirty years previously by Peano, who was thoroughly acquainted with Grassmann's mathematical work. Grassmann did not put down a formal definition—the language was not available—but there is no doubt that he had the concept.

With this conceptual background, in 1853, Grassmann published a theory of how colors mix; it and its three color laws are still taught, as Grassmann's law.[5]

As noted first by Grassmann... the light set has the structure of a cone in the infinite-dimensional linear space. As a result, a quotient set (with respect to metamerism) of the light cone inherits the conical structure, which allows color to be represented as a convex cone in the 3- D linear space, which is referred to as the color cone.[6]

Examples

[edit]
A comparison of CMYK and RGB color models. This image demonstrates the difference between how colors will look on a computer monitor (RGB) compared to how they might reproduce in a particular CMYK print process.

Colors can be created in printing with color spaces based on the CMYK color model, using the subtractive primary colors of pigment (cyan, magenta, yellow, and black). To create a three-dimensional representation of a given color space, we can assign the amount of magenta color to the representation's X axis, the amount of cyan to its Y axis, and the amount of yellow to its Z axis. The resulting 3-D space provides a unique position for every possible color that can be created by combining those three pigments.

Colors can be created on computer monitors with color spaces based on the RGB color model, using the additive primary colors (red, green, and blue). A three-dimensional representation would assign each of the three colors to the X, Y, and Z axes. Colors generated on a given monitor will be limited by the reproduction medium, such as the phosphor (in a CRT monitor) or filters and backlight (LCD monitor).

Another way of creating colors on a monitor is with an HSL or HSV color model, based on hue, saturation, brightness (value/lightness). With such a model, the variables are assigned to cylindrical coordinates.

Many color spaces can be represented as three-dimensional values in this manner, but some have more, or fewer dimensions, and some, such as Pantone, cannot be represented in this way at all.

Conversion

[edit]

Color space conversion is the translation of the representation of a color from one basis to another. This typically occurs in the context of converting an image that is represented in one color space to another color space, the goal being to make the translated image look as similar as possible to the original.

RGB density

[edit]

The RGB color model is implemented in different ways, depending on the capabilities of the system used. The most common incarnation in general use as of 2021 is the 24-bit implementation, with 8 bits, or 256 discrete levels of color per channel.[7] Any color space based on such a 24-bit RGB model is thus limited to a range of 256×256×256 ≈ 16.7 million colors. Some implementations use 16 bits per component for 48 bits total, resulting in the same gamut with a larger number of distinct colors. This is especially important when working with wide-gamut color spaces (where most of the more common colors are located relatively close together), or when a large number of digital filtering algorithms are used consecutively. The same principle applies for any color space based on the same color model, but implemented at different bit depths.

Lists

[edit]

CIE 1931 XYZ color space was one of the first attempts to produce a color space based on measurements of human color perception (earlier efforts were by James Clerk Maxwell, König & Dieterici, and Abney at Imperial College)[8] and it is the basis for almost all other color spaces. The CIERGB color space is a linearly-related companion of CIE XYZ. Additional derivatives of CIE XYZ include the CIELUV, CIEUVW, and CIELAB.

Generic

[edit]
Additive color mixing: Three overlapping light bulbs in a vacuum, adding together to create white.
Subtractive color mixing: Three splotches of paint on white paper, subtracting together to turn the paper black.

RGB uses additive color mixing, because it describes what kind of light needs to be emitted to produce a given color. RGB stores individual values for red, green and blue. RGBA is RGB with an additional channel, alpha, to indicate transparency. Common color spaces based on the RGB model include sRGB, Adobe RGB, ProPhoto RGB, scRGB, and CIE RGB.

CMYK uses subtractive color mixing used in the printing process, because it describes what kind of inks need to be applied so the light reflected from the substrate and through the inks produces a given color. One starts with a white substrate (canvas, page, etc.), and uses ink to subtract color from white to create an image. CMYK stores ink values for cyan, magenta, yellow and black. There are many CMYK color spaces for different sets of inks, substrates, and press characteristics (which change the dot gain or transfer function for each ink and thus change the appearance).

YIQ was formerly used in NTSC (North America, Japan and elsewhere) television broadcasts for historical reasons. This system stores a luma value roughly analogous to (and sometimes incorrectly identified as)[9][10] luminance, along with two chroma values as approximate representations of the relative amounts of blue and red in the color. It is similar to the YUV scheme used in most video capture systems[11] and in PAL (Australia, Europe, except France, which uses SECAM) television, except that the YIQ color space is rotated 33° with respect to the YUV color space and the color axes are swapped. The YDbDr scheme used by SECAM television is rotated in another way.

YPbPr is a scaled version of YUV. It is most commonly seen in its digital form, YCbCr, used widely in video and image compression schemes such as MPEG and JPEG.

xvYCC is a new international digital video color space standard published by the IEC (IEC 61966-2-4). It is based on the ITU BT.601 and BT.709 standards but extends the gamut beyond the R/G/B primaries specified in those standards.

HSV (hue, saturation, value), also known as HSB (hue, saturation, brightness) is often used by artists because it is often more natural to think about a color in terms of hue and saturation than in terms of additive or subtractive color components. HSV is a transformation of an RGB color space, and its components and colorimetry are relative to the RGB color space from which it was derived.

HSL (hue, saturation, lightness/luminance), also known as HLS or HSI (hue, saturation, intensity) is quite similar to HSV, with "lightness" replacing "brightness". The difference is that the brightness of a pure color is equal to the brightness of white, while the lightness of a pure color is equal to the lightness of a medium gray.

Commercial

[edit]

Special-purpose

[edit]

Obsolete

[edit]

Early color spaces had two components. They largely ignored blue light because the added complexity of a 3-component process provided only a marginal increase in fidelity when compared to the jump from monochrome to 2-component color.

Absolute color space

[edit]

In color science, there are two meanings of the term absolute color space:

  • A color space in which the perceptual difference between colors is directly related to distances between colors as represented by points in the color space, i.e. a uniform color space.[12][13]
  • A color space in which colors are unambiguous, that is, where the interpretations of colors in the space are colorimetrically defined without reference to external factors.[14][15]

In this article, we concentrate on the second definition.

CIEXYZ, sRGB, and ICtCp are examples of absolute color spaces, as opposed to a generic RGB color space.

A non-absolute color space can be made absolute by defining its relationship to absolute colorimetric quantities. For instance, if the red, green, and blue colors in a monitor are measured exactly, together with other properties of the monitor, then RGB values on that monitor can be considered as absolute. The CIE 1976 L*, a*, b* color space is sometimes referred to as absolute, though it also needs a white point specification to make it so.[16]

A popular way to make a color space like RGB into an absolute color is to define an ICC profile, which contains the attributes of the RGB. This is not the only way to express an absolute color, but it is the standard in many industries. RGB colors defined by widely accepted profiles include sRGB and Adobe RGB. The process of adding an ICC profile to a graphic or document is sometimes called tagging or embedding; tagging, therefore, marks the absolute meaning of colors in that graphic or document.

Conversion errors

[edit]

A color in one absolute color space can be converted into another absolute color space, and back again, in general; however, some color spaces may have gamut limitations, and converting colors that lie outside that gamut will not produce correct results. There are also likely to be rounding errors, especially if the popular range of only 256 distinct values per component (8-bit color) is used.

One part of the definition of an absolute color space is the viewing conditions. The same color, viewed under different natural or artificial lighting conditions, will look different. Those involved professionally with color matching may use viewing rooms, lit by standardized lighting.

Occasionally, there are precise rules for converting between non-absolute color spaces. For example, HSL and HSV spaces are defined as mappings of RGB. Both are non-absolute, but the conversion between them should maintain the same color. However, in general, converting between two non-absolute color spaces (for example, RGB to CMYK) or between absolute and non-absolute color spaces (for example, RGB to L*a*b*) is almost a meaningless concept.

Arbitrary spaces

[edit]

A different method of defining absolute color spaces is familiar to many consumers as the swatch card, used to select paint, fabrics, and the like. This is a way of agreeing a color between two parties. A more standardized method of defining absolute colors is the Pantone Matching System, a proprietary system that includes swatch cards and recipes that commercial printers can use to make inks that are a particular color.

See also

[edit]

References

[edit]
  1. ^ Gravesen, Jens (November 2015). "The Metric of Color Space" (PDF). Graphical Models. 82: 77–86. doi:10.1016/j.gmod.2015.06.005. S2CID 33425148. Retrieved 28 November 2023.
  2. ^ Young, T. (1802). "Bakerian Lecture: On the Theory of Light and Colours". Phil. Trans. R. Soc. Lond. 92: 12–48. doi:10.1098/rstl.1802.0004.
  3. ^ Hermann Grassmann and the Creation of Linear Algebra
  4. ^ Fearnley-Sander, Desmond (December 1979). "Hermann Grassmann and the Creation of Linear Algebra". The American Mathematical Monthly. 86 (10): 809–817. doi:10.1080/00029890.1979.11994921. ISSN 0002-9890.
  5. ^ Grassmann H (1853). "Zur Theorie der Farbenmischung". Annalen der Physik und Chemie. 89 (5): 69–84. Bibcode:1853AnP...165...69G. doi:10.1002/andp.18531650505.
  6. ^ Logvinenko A. D. (2015). "The geometric structure of color". Journal of Vision. 15 (1): 16. doi:10.1167/15.1.16. PMID 25589300.
  7. ^ Kyrnin, Mark (2021-08-26). "Why You Need to Know What Color Bit Depth Your Display Supports". Lifewire. Retrieved 2022-07-04.
  8. ^ William David Wright, 50 years of the 1931 CIE Standard Observer. Die Farbe, 29:4/6 (1981).
  9. ^ Charles Poynton, "YUV and 'luminance' considered harmful: a plea for precise terminology in video", online, author-edited version of Appendix A of Charles Poynton, Digital Video and HDTV: Algorithms and Interfaces, Morgan–Kaufmann, 2003. online
  10. ^ Charles Poynton, Constant Luminance, 2004
  11. ^ Dean Anderson. "Color Spaces in Frame Grabbers: RGB vs. YUV". Archived from the original on 2008-07-26. Retrieved 2008-04-08.
  12. ^ Hans G. Völz (2001). Industrial Color Testing: Fundamentals and Techniques. Wiley-VCH. ISBN 3-527-30436-3.
  13. ^ Gunter Buxbaum; Gerhard Pfaff (2005). Industrial Inorganic Pigments. Wiley-VCH. ISBN 3-527-30363-4.
  14. ^ Jonathan B. Knudsen (1999). Java 2D Graphics. O'Reilly. p. 172. ISBN 1-56592-484-3. absolute color space.
  15. ^ Bernice Ellen Rogowitz; Thrasyvoulos N Pappas; Scott J Daly (2007). Human Vision and Electronic Imaging XII. SPIE. ISBN 978-0-8194-6605-1.
  16. ^ Yud-Ren Chen; George E. Meyer; Shu-I. Tu (2005). Optical Sensors and Sensing Systems for Natural Resources and Food Safety and Quality. SPIE. ISBN 0-8194-6020-6.
[edit]