Skip to content

Commit

Permalink
Adjust tone curve's opacity to cover wider range #19
Browse files Browse the repository at this point in the history
  • Loading branch information
tshino committed Jul 17, 2017
1 parent 258f052 commit 480c12d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/compare-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ var calcToneCurve = function(a, b) {
var conf = [];
for (var k = 0; k < 2; ++k) {
var d = result.points[i + 1][k] - result.points[i][k];
conf[k] = d < thresh ? 1 : thresh / d;
conf[k] = d < thresh ? 1 : Math.pow(thresh / d, 0.3);
}
result.conf[i] = Math.min(conf[0], conf[1]);
}
Expand Down

0 comments on commit 480c12d

Please sign in to comment.