转自:http://www.wretch.cc/blog/hamer/1724101

 

gamma correction簡單的說就是亮度校正, 但是調整gamma值不僅會影響image的亮度,
也會影響到R,G,B的比例

gamma指的就是power function的指數, i.e. p(x) =
x^(gamma)
for example, x = 3, and gamma = 2, then x 經過 power
function p
的作用後其輸出的值不會是原來的 3 而變成 9

為什麼要考慮到gamma呢,
因為一般來說當我們想要再螢幕上看image時, 因為螢幕對於接受到的輸入能量會有一個gamma=2.5的power作用,
使得原來的輸入值與實際上最後我們在螢幕上所看到的不一樣, 因此大部分的螢幕都會經過一個
gamma correction的步驟,
將能量數值校正回原來的樣子.
<!--StartFragment -->
沒有經過校正:

[色彩校正] Gamma Correction Sample Input to Monitor [色彩校正] Gamma Correction Graph of Input
[色彩校正] Gamma Correction Output from Monitor [色彩校正] Gamma Correction Graph of Output L = V ^ 2.5
校正
<!--StartFragment -->
[色彩校正] Gamma Correction Sample Input          [色彩校正] Gamma Correction Graph of Input
[色彩校正] Gamma Correction Gamma Corrected Input [色彩校正] Gamma Correction Graph of Correction L' = L ^ (1/2.5)
[色彩校正] Gamma Correction Monitor Output [色彩校正] Gamma Correction Graph of Output

相关文章: