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 --- .../texture_synthesis/src/matlabPyrTools/shift.m | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100755 SD-VBS/benchmarks/texture_synthesis/src/matlabPyrTools/shift.m (limited to 'SD-VBS/benchmarks/texture_synthesis/src/matlabPyrTools/shift.m') diff --git a/SD-VBS/benchmarks/texture_synthesis/src/matlabPyrTools/shift.m b/SD-VBS/benchmarks/texture_synthesis/src/matlabPyrTools/shift.m deleted file mode 100755 index 497297e..0000000 --- a/SD-VBS/benchmarks/texture_synthesis/src/matlabPyrTools/shift.m +++ /dev/null @@ -1,15 +0,0 @@ -% [RES] = shift(MTX, OFFSET) -% -% Circular shift 2D matrix samples by OFFSET (a [Y,X] 2-vector), -% such that RES(POS) = MTX(POS-OFFSET). - -function res = shift(mtx, offset) - -dims = size(mtx); - -offset = mod(-offset,dims); - -res = [ mtx(offset(1)+1:dims(1), offset(2)+1:dims(2)), ... - mtx(offset(1)+1:dims(1), 1:offset(2)); ... - mtx(1:offset(1), offset(2)+1:dims(2)), ... - mtx(1:offset(1), 1:offset(2)) ]; -- cgit v1.2.2