gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] gzz/gfx/libcolor spaces.py


From: Janne V. Kujala
Subject: [Gzz-commits] gzz/gfx/libcolor spaces.py
Date: Sun, 23 Mar 2003 09:48:52 -0500

CVSROOT:        /cvsroot/gzz
Module name:    gzz
Changes by:     Janne V. Kujala <address@hidden>        03/03/23 09:48:52

Modified files:
        gfx/libcolor   : spaces.py 

Log message:
        The gamma of PC systems is 2.2

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/libcolor/spaces.py.diff?tr1=1.16&tr2=1.17&r1=text&r2=text

Patches:
Index: gzz/gfx/libcolor/spaces.py
diff -u gzz/gfx/libcolor/spaces.py:1.16 gzz/gfx/libcolor/spaces.py:1.17
--- gzz/gfx/libcolor/spaces.py:1.16     Sun Mar  9 05:39:16 2003
+++ gzz/gfx/libcolor/spaces.py  Sun Mar 23 09:48:52 2003
@@ -158,10 +158,11 @@
 # Gamma correction used with the perceptual non-linearity in YtoL and LtoY
 # conversion functions.
 #
-gamma = 2
+gamma = 2.2
 #
-# Usually, the default display gamma of 1.0 actually yields an intensity
-# exponent of 0.5 so gamma correction of 2.0 here should result in linear
+# The uncorrected display gamma of PC's is typically 2.2, i.e.,
+# RGB values map to physical intensities with an exponent of 2.2.
+# So, gamma correction of 2.2 here should result in linear
 # intensity. (The CIE L* computation assumes linear intensity).
 
 def YSTtoRGB(v):




reply via email to

[Prev in Thread] Current Thread [Next in Thread]