From 1e93f21e83d91c74b7bd329cf62ec4c2aebb2466 Mon Sep 17 00:00:00 2001
From: Mattias Andrée <maandree@operamail.com>
Date: Mon, 24 Feb 2014 09:57:33 +0100
Subject: fix m bug is sigmoid + add some comments now that I have testet it
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Mattias Andrée <maandree@operamail.com>
---
 src/curve.py | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

(limited to 'src')

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):
-- 
cgit v1.2.3-70-g09d2