Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Gamma correction
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Power law for video display== A ''gamma characteristic'' is a [[power law|power-law]] relationship that approximates the relationship between the encoded [[Luminance (video)|luma]] in a [[television]] system and the actual desired image luminance. With this nonlinear relationship, equal steps in encoded luminance correspond roughly to subjectively equal steps in brightness. Ebner and Fairchild<ref name="EbnerCIC61998">Fritz Ebner and Mark D Fairchild, "Development and testing of a color space (IPT) with improved hue uniformity," ''Proceedings of IS&T/SID's Sixth Color Imaging Conference,'' p 8-13 (1998).</ref> [[ICtCp#In IPT|used an exponent of 0.43]] to convert linear intensity into lightness (luma) for neutrals; the reciprocal, approximately 2.33 (quite close to the 2.2 figure cited for a typical display subsystem), was found to provide approximately optimal perceptual encoding of grays. The following illustration shows the difference between a scale with linearly-increasing encoded luminance signal (linear gamma-compressed luma input) and a scale with linearly-increasing intensity scale (linear luminance output). {| style="background: #000000; color: gray; padding: 1em; margin: 0 2em 0 2em; border-spacing: 0px;" | style="color: #A0A0A0;" | Linear encoding | style="color: #A0A0A0;" | ''V''<sub>S</sub> = | style="background: #000000; color: #0D4F8B;" | 0.0 | style="background: #1A1A1A; color: #0D4F8B;" | 0.1 | style="background: #333333; color: #0D4F8B;" | 0.2 | style="background: #4D4D4D; color: #0D4F8B;" | 0.3 | style="background: #666666; color: #0D4F8B;" | 0.4 | style="background: #808080; color: #0D4F8B;" | 0.5 | style="background: #999999; color: #0D4F8B;" | 0.6 | style="background: #B3B3B3; color: #0D4F8B;" | 0.7 | style="background: #CCCCCC; color: #0D4F8B;" | 0.8 | style="background: #E6E6E6; color: #0D4F8B;" | 0.9 | style="background: #FFFFFF; color: #0D4F8B;" | 1.0 |- | style="color: #A0A0A0;" | Linear intensity | style="color: #A0A0A0;" | ''I'' = | style="background: #000000; color: #0D4F8B;" | 0.0 | style="background: #5A5A5A; color: #0D4F8B;" | 0.1 | style="background: #7B7B7B; color: #0D4F8B;" | 0.2 | style="background: #949494; color: #0D4F8B;" | 0.3 | style="background: #A9A9A9; color: #0D4F8B;" | 0.4 | style="background: #BBBBBB; color: #0D4F8B;" | 0.5 | style="background: #CBCBCB; color: #0D4F8B;" | 0.6 | style="background: #D9D9D9; color: #0D4F8B;" | 0.7 | style="background: #E7E7E7; color: #0D4F8B;" | 0.8 | style="background: #F4F4F4; color: #0D4F8B;" | 0.9 | style="background: #FFFFFF; color: #0D4F8B;" | 1.0 |} On most displays (those with gamma of about 2.2), one can observe that the linear-intensity scale has a large jump in perceived brightness between the intensity values 0.0 and 0.1, while the steps at the higher end of the scale are hardly perceptible. The gamma-encoded scale, which has a nonlinearly-increasing intensity, will show much more even steps in perceived brightness. A CRT, for example, converts a video signal to light in a nonlinear way, because the electron gun's intensity (brightness) as a function of applied video voltage is nonlinear. The light intensity ''I'' is related to the source [[voltage]] ''V''<sub>s</sub> according to : <math>I \propto V_\text{s}^\gamma,</math> where ''γ'' is the [[Greek alphabet|Greek]] letter [[gamma]]. For a CRT, the gamma that relates brightness to voltage is usually in the range 2.35 to 2.55; video [[look-up table]]s in computers usually adjust the system gamma to the range 1.8 to 2.2,<ref name=poynton/> which is in the region that makes a uniform encoding difference give approximately uniform perceptual brightness difference, as illustrated in the diagram at the top of this section. For simplicity, consider the example of a monochrome CRT. In this case, when a video signal of 0.5 (representing a mid-gray) is fed to the display, the intensity or brightness is about 0.22 (resulting in a mid-gray, about 22% the intensity of white). Pure black (0.0) and pure white (1.0) are the only shades that are unaffected by gamma. To compensate for this effect, the inverse transfer function (gamma correction) is sometimes applied to the video signal so that the end-to-end response is linear. In other words, the transmitted signal is deliberately distorted so that, after it has been distorted again by the display device, the viewer sees the correct brightness. The inverse of the function above is : <math>V_\text{c} \propto V_\text{s}^{1/\gamma},</math> where ''V''<sub>c</sub> is the corrected voltage, and ''V''<sub>s</sub> is the source voltage, for example, from an [[image sensor]] that converts photocharge linearly to a voltage. In our CRT example 1/''γ'' is 1/2.2 ≈ 0.45. A color CRT receives three video signals (red, green, and blue) and in general each color has its own value of gamma, denoted ''γ''<sub>''R''</sub>, ''γ''<sub>''G''</sub> or ''γ''<sub>''B''</sub>. However, in simple display systems, a single value of ''γ'' is used for all three colors. Other display devices have different values of gamma: for example, a [[Game Boy Advance]] display has a gamma between 3 and 4 depending on lighting conditions. In LCDs such as those on laptop computers, the relation between the signal voltage ''V''<sub>s</sub> and the intensity ''I'' is very nonlinear and cannot be described with gamma value. However, such displays apply a correction onto the signal voltage in order to approximately get a standard {{nowrap|1=''γ'' = 2.5}} behavior. In [[NTSC]] [[television]] recording, {{nowrap|1=''γ'' = 2.2}}. The power-law function, or its inverse, has a slope of infinity at zero. This leads to problems in converting from and to a gamma colorspace. For this reason most formally defined colorspaces such as [[sRGB]] will define a straight-line segment near zero and add raising {{nowrap|''x'' + ''K''}} (where ''K'' is a constant) to a power so the curve has continuous slope. This straight line does not represent what the CRT does, but does make the rest of the curve more closely match the effect of ambient light on the CRT. In such expressions the exponent is ''not'' the gamma; for instance, the sRGB function uses a power of 2.4 in it, but more closely resembles a power-law function with an exponent of 2.2, without a linear portion.
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Gamma correction
(section)
Add topic