From 25d94aa8aabb8ac3e8bbea0bc439ea6148444cc8 Mon Sep 17 00:00:00 2001 From: leochanj Date: Wed, 21 Oct 2020 01:52:54 -0400 Subject: debug libextra and remove matlab --- SD-VBS/benchmarks/texture_synthesis/src/matlab/var2.m | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100755 SD-VBS/benchmarks/texture_synthesis/src/matlab/var2.m (limited to 'SD-VBS/benchmarks/texture_synthesis/src/matlab/var2.m') diff --git a/SD-VBS/benchmarks/texture_synthesis/src/matlab/var2.m b/SD-VBS/benchmarks/texture_synthesis/src/matlab/var2.m deleted file mode 100755 index 6957eff..0000000 --- a/SD-VBS/benchmarks/texture_synthesis/src/matlab/var2.m +++ /dev/null @@ -1,17 +0,0 @@ -% V = VAR2(MTX,MEAN) -% -% Sample variance of a matrix. -% Passing MEAN (optional) makes the calculation faster. - -function res = var2(mtx, mn) - -if (exist('mn') ~= 1) - mn = mean2(mtx); -end - -if (isreal(mtx)) - res = sum(sum(abs(mtx-mn).^2)) / max((prod(size(mtx)) - 1),1); -else - res = sum(sum(real(mtx-mn).^2)) + i*sum(sum(imag(mtx-mn).^2)); - res = res / max((prod(size(mtx)) - 1),1); -end -- cgit v1.2.2