diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-08-08 21:33:02 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-08-08 21:33:02 +0200 |
commit | 680aab24bb74f33b4021e5ebd2a01884149feeaf (patch) | |
tree | f43b90b20a9aa2a57654f899b8a42b963d6b49d7 /src/gamma.c | |
parent | m (diff) | |
download | crt-calibrator-680aab24bb74f33b4021e5ebd2a01884149feeaf.tar.gz crt-calibrator-680aab24bb74f33b4021e5ebd2a01884149feeaf.tar.bz2 crt-calibrator-680aab24bb74f33b4021e5ebd2a01884149feeaf.tar.xz |
misc
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/gamma.c')
-rw-r--r-- | src/gamma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gamma.c b/src/gamma.c index 843403d..f0dc05b 100644 --- a/src/gamma.c +++ b/src/gamma.c @@ -38,7 +38,7 @@ void gamma_analyse(size_t stops, const uint16_t* restrict ramp, double* restrict middle = (double)(ramp[stops / 2]) / (double)0xFFFF; middle = (middle - min) / (max - min); - *gamma = log((double)2) / log(middle); + *gamma = -log((double)2) / log(middle); } |