From 0efc775370d2ff91927d1b383a99eab78dc5538f Mon Sep 17 00:00:00 2001 From: leochanj Date: Wed, 21 Oct 2020 01:52:54 -0400 Subject: debug libextra and remove matlab FLUSH_CACHES --- .../benchmarks/texture_synthesis/src/matlab/clip.m | 32 ---------------------- 1 file changed, 32 deletions(-) delete mode 100755 SD-VBS/benchmarks/texture_synthesis/src/matlab/clip.m (limited to 'SD-VBS/benchmarks/texture_synthesis/src/matlab/clip.m') diff --git a/SD-VBS/benchmarks/texture_synthesis/src/matlab/clip.m b/SD-VBS/benchmarks/texture_synthesis/src/matlab/clip.m deleted file mode 100755 index 28804f3..0000000 --- a/SD-VBS/benchmarks/texture_synthesis/src/matlab/clip.m +++ /dev/null @@ -1,32 +0,0 @@ -% [RES] = clip(IM, MINVALorRANGE, MAXVAL) -% -% Clip values of matrix IM to lie between minVal and maxVal: -% RES = max(min(IM,MAXVAL),MINVAL) -% The first argument can also specify both min and max, as a 2-vector. -% If only one argument is passed, the range defaults to [0,1]. - -function res = clip(im, minValOrRange, maxVal) - -if (exist('minValOrRange') ~= 1) - minVal = 0; - maxVal = 1; -elseif (length(minValOrRange) == 2) - minVal = minValOrRange(1); - maxVal = minValOrRange(2); -elseif (length(minValOrRange) == 1) - minVal = minValOrRange; - if (exist('maxVal') ~= 1) - maxVal=minVal+1; - end -else - error('MINVAL must be a scalar or a 2-vector'); -end - -if ( maxVal < minVal ) - error('MAXVAL should be less than MINVAL'); -end - -res = im; -res(find(im < minVal)) = minVal; -res(find(im > maxVal)) = maxVal; - -- cgit v1.2.2