- improved clipping

- matte is clipped matte white

git-svn-id: http://moon:8086/svn/matlab/trunk@150 801c6759-fa7c-4059-a304-17956f83a07c
This commit is contained in:
2020-10-07 19:50:13 +00:00
parent 58b94067b1
commit 130f83a27f
3 changed files with 8 additions and 12 deletions
+1 -4
View File
@@ -25,9 +25,6 @@
function y = clip_white (x, thresh, k)
ind = find (x >= thresh);
y = x;
y(ind) = thresh + (x(ind)-thresh)*k;
y = min(1, exp(-k*max(0,(thresh-x))) - exp(-k*thresh));
endfunction