-->

Friday, July 27, 2018

AdobeRGB vs. sRGB | Fstoppers
src: cdn.fstoppers.com

sRGB (standard Red Green Blue) is an RGB color space that HP and Microsoft created cooperatively in 1996 to use on monitors, printers, and the Internet. It was subsequently standardized by the IEC as IEC 61966-2-1:1999. It is often the "default" color space for images that contain no color space information, especially if the images' pixels are stored in 8-bit integers per color channel.

sRGB uses the ITU-R BT.709 primaries, the same as in studio monitors and HDTV, a transfer function (gamma curve) typical of CRTs, and a viewing environment designed to match typical home and office viewing conditions. This specification allowed sRGB to be directly displayed on typical CRT monitors of the time, which greatly aided its acceptance.


Video SRGB



The sRGB gamut

sRGB defines the chromaticities of the red, green, and blue primaries, the colors where one of the three channels is nonzero and the other two are zero. The gamut of chromaticities that can be represented in sRGB is the color triangle defined by these primaries. As with any RGB color space, for non-negative values of R, G, and B it is not possible to represent colors outside this triangle, which is well inside the range of colors visible to a human with normal trichromatic vision.

sRGB is sometimes avoided by high-end print publishing professionals because its color gamut is not big enough, especially in the blue-green colors, to include all the colors that can be reproduced in CMYK printing.


Maps SRGB



The sRGB transfer function ("gamma")

sRGB also defines a nonlinear transformation between the intensity of these primaries and the actual number stored. The curve is similar to the gamma response of a CRT display. This nonlinear conversion means that sRGB is a reasonably efficient use of the values in an integer-based image file to display human-discernible light levels.

Unlike most other RGB color spaces, the sRGB gamma cannot be expressed as a single numerical value. The overall gamma is approximately 2.2, consisting of a linear (gamma 1.0) section near black, and a non-linear section elsewhere involving a 2.4 exponent and a gamma (slope of log output versus log input) changing from 1.0 through about 2.3. The purpose of the linear section is so the curve does not have an infinite slope at zero, which could cause numerical problems.


Acer | sRGB & Rec. 709 For Digital Displays Explained - YouTube
src: i.ytimg.com


Specification of the transformation

The forward transformation (CIE XYZ to sRGB)

The CIE XYZ values must be scaled so that the Y of D65 ("white") is 1.0 (X,Y,Z = 0.9505, 1.0000, 1.0890). This is usually true but some color spaces use 100 or other values (such as in the Lab article).

The first step in the calculation of sRGB from CIE XYZ is a linear transformation, which may be carried out by a matrix multiplication. (The numerical values below match those in the official sRGB specification, which corrected small rounding errors in the original publication by sRGB's creators, and assume the 2° standard colorimetric observer for CIE XYZ)

[ R l i n e a r G l i n e a r B l i n e a r ] = [ 3.2406 - 1.5372 - 0.4986 - 0.9689 1.8758 0.0415 0.0557 - 0.2040 1.0570 ] [ X Y Z ] {\displaystyle {\begin{bmatrix}R_{\mathrm {linear} }\\G_{\mathrm {linear} }\\B_{\mathrm {linear} }\end{bmatrix}}={\begin{bmatrix}3.2406&-1.5372&-0.4986\\-0.9689&1.8758&0.0415\\0.0557&-0.2040&1.0570\end{bmatrix}}{\begin{bmatrix}X\\Y\\Z\end{bmatrix}}}

It is important to note that these linear RGB values are not the final result as they have not been adjusted for the gamma correction yet. The following formula transforms the linear values into sRGB:

C s r g b = { 12.92 C l i n e a r , C l i n e a r <= 0.0031308 ( 1 + a ) C l i n e a r 1 / 2.4 - a , C l i n e a r > 0.0031308 {\displaystyle C_{\mathrm {srgb} }={\begin{cases}12.92C_{\mathrm {linear} },&C_{\mathrm {linear} }\leq 0.0031308\\(1+a)C_{\mathrm {linear} }^{1/2.4}-a,&C_{\mathrm {linear} }>0.0031308\end{cases}}}
  • where a = 0.055 {\displaystyle a=0.055} and where C {\displaystyle C} is R {\displaystyle R} , G {\displaystyle G} , or B {\displaystyle B} .

These gamma-corrected values are in the range 0 to 1. If values in the range 0 to 255 are required, e.g. for video display or 8-bit graphics, the usual technique is to multiply by 255 and round to an integer.

The values are usually clipped to the 0 to 1 range. This clipping can be done before or after the gamma calculation, or done as part of converting to 8 bits.

The reverse transformation

Again the sRGB component values R s r g b {\displaystyle R_{\mathrm {srgb} }} , G s r g b {\displaystyle G_{\mathrm {srgb} }} , B s r g b {\displaystyle B_{\mathrm {srgb} }} are in the range 0 to 1. (A range of 0 to 255 can simply be divided by 255.0).

C l i n e a r = { C s r g b 12.92 , C s r g b <= 0.04045 ( C s r g b + a 1 + a ) 2.4 , C s r g b > 0.04045 {\displaystyle C_{\mathrm {linear} }={\begin{cases}{\frac {C_{\mathrm {srgb} }}{12.92}},&C_{\mathrm {srgb} }\leq 0.04045\\\left({\frac {C_{\mathrm {srgb} }+a}{1+a}}\right)^{2.4},&C_{\mathrm {srgb} }>0.04045\end{cases}}}
  • where a = 0.055 {\displaystyle a=0.055} and where C {\displaystyle C} is R {\displaystyle R} , G {\displaystyle G} , or B {\displaystyle B} .

Followed by a matrix multiplication of the linear values to get XYZ:

[ X Y Z ] = [ 0.4124 0.3576 0.1805 0.2126 0.7152 0.0722 0.0193 0.1192 0.9505 ] [ R l i n e a r G l i n e a r B l i n e a r ] {\displaystyle {\begin{bmatrix}X\\Y\\Z\end{bmatrix}}={\begin{bmatrix}0.4124&0.3576&0.1805\\0.2126&0.7152&0.0722\\0.0193&0.1192&0.9505\end{bmatrix}}{\begin{bmatrix}R_{\mathrm {linear} }\\G_{\mathrm {linear} }\\B_{\mathrm {linear} }\end{bmatrix}}}

Adobe RGB vs sRGB - YouTube
src: i.ytimg.com


Theory of the transformation

It is often casually stated that the decoding gamma for sRGB data is 2.2, yet the above transform shows an exponent of 2.4. This is because the net effect of the piecewise decomposition is necessarily a changing instantaneous gamma at each point in the range: it goes from gamma = 1 at zero to a gamma of 2.4 at maximum intensity with a median value being close to 2.2. The transformation was designed to approximate a gamma of about 2.2, but with a linear portion near zero to avoid having an infinite slope at K = 0, which can cause numerical problems. The continuity condition for the curve C l i n e a r {\displaystyle C_{\mathrm {linear} }} , which is defined above as a piecewise function of C s r g b {\displaystyle C_{\mathrm {srgb} }} , is

( K 0 + a 1 + a ) ? = K 0 ? . {\displaystyle \left({\frac {K_{0}+a}{1+a}}\right)^{\gamma }={\frac {K_{0}}{\phi }}.}

Solving with ? = 2.4 {\displaystyle \gamma =2.4} and the standard value ? = 12.92 {\displaystyle \phi =12.92} yields two solutions, K 0 {\displaystyle K_{0}} ? 0.0381548 {\displaystyle 0.0381548} or K 0 {\displaystyle K_{0}} ? 0.0404482 {\displaystyle 0.0404482} . The IEC 61966-2-1 standard uses the rounded value K 0 = 0.04045 {\displaystyle K_{0}=0.04045} . However, if we impose the condition that the slopes match as well then we must have

? ( K 0 + a 1 + a ) ? - 1 ( 1 1 + a ) = 1 ? . {\displaystyle \gamma \left({\frac {K_{0}+a}{1+a}}\right)^{\gamma -1}\left({\frac {1}{1+a}}\right)={\frac {1}{\phi }}.}

We now have two equations. If we take the two unknowns to be K 0 {\displaystyle K_{0}} and ? {\displaystyle \phi } then we can solve to give

K 0 = a ? - 1 ,       ? = ( 1 + a ) ? ( ? - 1 ) ? - 1 ( a ? - 1 ) ( ? ? ) . {\displaystyle K_{0}={\frac {a}{\gamma -1}},\ \ \ \phi ={\frac {(1+a)^{\gamma }(\gamma -1)^{\gamma -1}}{(a^{\gamma -1})(\gamma ^{\gamma })}}.}

Substituting a = 0.055 {\displaystyle a=0.055} and ? = 2.4 {\displaystyle \gamma =2.4} gives K 0 {\displaystyle K_{0}} ? 0.0392857 {\displaystyle 0.0392857} and ? {\displaystyle \phi } ? 12.9232102 {\displaystyle 12.9232102} , with the corresponding linear-domain threshold at K 0 / ? {\displaystyle K_{0}/\phi } ? 0.00303993 {\displaystyle 0.00303993} . These values, rounded to K 0 = 0.03928 {\displaystyle K_{0}=0.03928} , ? = 12.92321 {\displaystyle \phi =12.92321} , and K 0 / ? = 0.00304 {\displaystyle K_{0}/\phi =0.00304} , sometimes describe sRGB conversion. Publications by sRGB's creators rounded to K 0 = 0.03928 {\displaystyle K_{0}=0.03928} and ? = 12.92 {\displaystyle \phi =12.92} , resulting in a small discontinuity in the curve. Some authors adopted these values in spite of the discontinuity. For the standard, the rounded value ? = 12.92 {\displaystyle \phi =12.92} was kept and the K 0 {\displaystyle K_{0}} value was recomputed to make the resulting curve continuous, as described above, resulting in a slope discontinuity from 12.92 below the intersection to 12.70 above.


sRGB vs Adobe RGB vs ProPhotoRGB | Photo.net Photography Forums
src: digitaldog.net


Viewing environment

The sRGB specification assumes a dimly lit encoding (creation) environment with an ambient correlated color temperature (CCT) of 5000 K. It is interesting to note that this differs from the CCT of the illuminant (D65). Using D50 for both would have made the white point of most photographic paper appear excessively blue. The other parameters, such as the luminance level, are representative of a typical CRT monitor.

For optimal results, the ICC recommends using the encoding viewing environment (i.e., dim, diffuse lighting) rather than the less-stringent typical viewing environment.


sRGB (The Colors Of The Internet) | jon malis
src: www.jonmalis.com


Usage

Due to the standardization of sRGB on the Internet, on computers, and on printers, many low- to medium-end consumer digital cameras and scanners use sRGB as the default (or only available) working color space. As the sRGB gamut meets or exceeds the gamut of a low-end inkjet printer, an sRGB image is often regarded as satisfactory for home use. However, consumer-level CCDs are typically uncalibrated, meaning that even though the image is being labeled as sRGB, one can't conclude that the image is color-accurate sRGB.

If the color space of an image is unknown and it is an 8- to 16-bit image format, assuming it is in the sRGB color space is a safe choice. This allows a program to identify a color space for all images, which may be much easier and more reliable than trying to track the "unknown" color space. An ICC profile may be used; the ICC distributes three such profiles: two profiles conforming to version 4 of the ICC specification, which they recommend, and one profile conforming to version 2, which is still commonly used.

Images intended for professional printing via a fully color-managed workflow, e.g. prepress output, sometimes use another color space such as Adobe RGB (1998), which accommodates a wider gamut. Such images used on the Internet may be converted to sRGB using color management tools that are usually included with software that works in these other color spaces.

The two dominant programming interfaces for 3D graphics, OpenGL and Direct3D, have both incorporated support for the sRGB gamma curve. OpenGL supports textures with sRGB gamma encoded color components (first introduced with EXT_texture_sRGB extension, added to the core in OpenGL 2.1) and rendering into sRGB gamma encoded framebuffers (first introduced with EXT_framebuffer_sRGB extension, added to the core in OpenGL 3.0). Direct3D supports sRGB gamma textures and rendering into sRGB gamma surfaces starting with DirectX 9. Correct mipmapping and interpolation of sRGB gamma textures has direct hardware support in texturing units of most modern GPUs (for example nVidia GeForce 8 performs conversion from 8-bit texture to linear values before interpolating those values), and does not have any performance penalty.


Which OnePlus 3 has sRGB? รข€
src: openattitude.com


See also

  • RGB color space
  • scRGB

Substance P sRGB problems! - UE4 AnswerHub
src: answers.unrealengine.com


References

Standards

  • IEC 61966-2-1:1999 is the official specification of sRGB. It provides viewing environment, encoding, and colorimetric details.
  • Amendment A1:2003 to IEC 61966-2-1:1999 describes an analogous sYCC encoding for YCbCr color spaces, an extended-gamut RGB encoding, and a CIELAB transformation.
  • sRGB on www.color.org
  • The fourth working draft of IEC 61966-2-1 is available online, but is not the complete standard. It can be downloaded from www2.units.it.

Alienware 17 R3 has an incredible screen with 100% sRGB and 100 ...
src: i2.wp.com


External links

  • International Color Consortium
  • Archive copy of http://www.srgb.com, now unavailable, containing much information on the design, principles and use of sRGB
  • A Standard Default Color Space for the Internet - sRGB at w3.org
  • OpenGL extension for sRGB gamma textures at sgi.com
  • Conversion matrices for RGB vs. XYZ conversion
  • Will the Real sRGB Profile Please Stand Up?

Source of article : Wikipedia