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 --- .../disparity/src/matlab/script_run_profile.m | 43 ---------------------- 1 file changed, 43 deletions(-) delete mode 100755 SD-VBS/benchmarks/disparity/src/matlab/script_run_profile.m (limited to 'SD-VBS/benchmarks/disparity/src/matlab/script_run_profile.m') diff --git a/SD-VBS/benchmarks/disparity/src/matlab/script_run_profile.m b/SD-VBS/benchmarks/disparity/src/matlab/script_run_profile.m deleted file mode 100755 index 6e0386d..0000000 --- a/SD-VBS/benchmarks/disparity/src/matlab/script_run_profile.m +++ /dev/null @@ -1,43 +0,0 @@ -function script_run_profile(dataDir, resultDir, type, common, tooldir) - -path(path,common); - -tol = 2; -elapsed = [0, 0]; - -WIN_SZ = 8; -SHIFT = 64; - -if(strcmp(type,'test')) - WIN_SZ = 2; - SHIFT = 1; -elseif(strcmp(type, 'sim_fast')) - WIN_SZ = 4; - SHIFT = 4; -elseif(strcmp(type,'sim')) - WIN_SZ = 4; - SHIFT = 8; -end - - outFile = [resultDir, '/', 'out', '.bmp']; - - file = [dataDir, '/1.bmp']; - imleft = readImage(file); - imright = readImage([dataDir, '/2.bmp']); - [rows, cols] = size(imright); - - fprintf(1,'Input size\t\t- (%dx%d)\n', rows, cols); - - start = photonStartTiming; - [imDispOwn, DispSAD, minSAD]=getDisparity(double(imleft), double(imright), WIN_SZ, SHIFT); - stop = photonEndTiming; - elapsed = photonReportTiming(start, stop); - - writeMatrix(imDispOwn, dataDir); - imwrite(uint8(minSAD), outFile, 'bmp'); - - photonPrintTiming(elapsed); - - - - -- cgit v1.2.2