summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-02-24 09:57:33 +0100
committerMattias Andrée <maandree@operamail.com>2014-02-24 09:57:33 +0100
commit1e93f21e83d91c74b7bd329cf62ec4c2aebb2466 (patch)
tree9c5b4a001ec736a2e58786b77d6dd300b84ffcd9 /src
parentbump version (diff)
downloadblueshift-1e93f21e83d91c74b7bd329cf62ec4c2aebb2466.tar.gz
blueshift-1e93f21e83d91c74b7bd329cf62ec4c2aebb2466.tar.bz2
blueshift-1e93f21e83d91c74b7bd329cf62ec4c2aebb2466.tar.xz
fix m bug is sigmoid + add some comments now that I have testet it
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/curve.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/curve.py b/src/curve.py
index c98f454..4f1d58d 100644
--- a/src/curve.py
+++ b/src/curve.py
@@ -386,7 +386,13 @@ def cie_invert(r = True, g = None, b = None):
def sigmoid(r, g, b):
'''
- Apply S-curve correction on the colour curves
+ Apply S-curve correction on the colour curves.
+ This is intended for fine tuning LCD monitors,
+ 4.5 is good value start start testing at.
+ You would probably like to use rgb_limits before
+ this to adjust the black point as that is the
+ only why to adjust the black point on many LCD
+ monitors.
@param r:float? The sigmoid parameter for the red curve
@param g:float? The sigmoid parameter for the green curve
@@ -398,7 +404,7 @@ def sigmoid(r, g, b):
try:
curve[i] = 0.5 - math.log(1 / curve[i] - 1) / level
except:
- curve[i] = 0;
+ curve[i] = curve[i];
def rgb_limits(r_min, r_max, g_min = None, g_max = None, b_min = None, b_max = None):