- 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:
@@ -24,9 +24,7 @@
|
||||
## Created: 2020-10-04
|
||||
|
||||
function y = clip_black (x, thresh, k)
|
||||
ind = find (x >= thresh);
|
||||
|
||||
y = x/k;
|
||||
y(ind) = thresh/k + (x(ind)-thresh)*(1+thresh);
|
||||
y = 1 - min(1, exp(-k*max(0,((1-thresh)-(1-x)))));
|
||||
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user