summaryrefslogtreecommitdiffstats
path: root/SD-VBS/benchmarks/multi_ncut
diff options
context:
space:
mode:
authorleochanj <jbakita@cs.unc.edu>2020-10-21 01:52:54 -0400
committerleochanj <jbakita@cs.unc.edu>2020-10-21 01:52:54 -0400
commit25d94aa8aabb8ac3e8bbea0bc439ea6148444cc8 (patch)
treeba80e76d25d9ca9486092e2f6b6d76f0e3352bf7 /SD-VBS/benchmarks/multi_ncut
parente2b50015cebdfba68699abd6e8575e38230f5a78 (diff)
debug libextra and remove matlab
Diffstat (limited to 'SD-VBS/benchmarks/multi_ncut')
-rw-r--r--SD-VBS/benchmarks/multi_ncut/data/sim/12345.txt15
-rwxr-xr-xSD-VBS/benchmarks/multi_ncut/src/matlab/script_run_profile.m78
2 files changed, 0 insertions, 93 deletions
diff --git a/SD-VBS/benchmarks/multi_ncut/data/sim/12345.txt b/SD-VBS/benchmarks/multi_ncut/data/sim/12345.txt
deleted file mode 100644
index c49a646..0000000
--- a/SD-VBS/benchmarks/multi_ncut/data/sim/12345.txt
+++ /dev/null
@@ -1,15 +0,0 @@
1multi_ncut-sim none 7 none 5 334869696 12345 0 0 0
2multi_ncut-sim none 7 none 5 330667392 12345 1 0 0
3multi_ncut-sim none 7 none 5 331028160 12345 2 0 0
4multi_ncut-sim none 7 none 5 330717120 12345 3 0 0
5multi_ncut-sim none 7 none 5 330725056 12345 4 0 0
6multi_ncut-sim none 6 none 5 334245504 12345 0 0 0
7multi_ncut-sim none 6 none 5 330564288 12345 1 0 0
8multi_ncut-sim none 6 none 5 330787648 12345 2 0 0
9multi_ncut-sim none 6 none 5 330631872 12345 3 0 0
10multi_ncut-sim none 6 none 5 330513440 12345 4 0 0
11multi_ncut-sim none 19 none 5 335748992 12345 0 0 0
12multi_ncut-sim none 19 none 5 331288224 12345 1 0 0
13multi_ncut-sim none 19 none 5 330814880 12345 2 0 0
14multi_ncut-sim none 19 none 5 330980416 12345 3 0 0
15multi_ncut-sim none 19 none 5 331042912 12345 4 0 0
diff --git a/SD-VBS/benchmarks/multi_ncut/src/matlab/script_run_profile.m b/SD-VBS/benchmarks/multi_ncut/src/matlab/script_run_profile.m
deleted file mode 100755
index 7624137..0000000
--- a/SD-VBS/benchmarks/multi_ncut/src/matlab/script_run_profile.m
+++ /dev/null
@@ -1,78 +0,0 @@
1% MNcutDemo.m
2% created by song, 06/13/2005
3% an exmaple of how to use and display MNcut
4
5
6function script_run_profile(dataDir, resultDir, type, common, toolDir)
7
8%% Input parameters
9
10if(nargin == 0)
11 data_set='test';
12end
13if(nargin <=2)
14 imageSize = 100;
15end
16
17num_segs = 20;
18if(strcmp(type, 'test'))
19 num_segs = 1;
20elseif(strcmp(type, 'sim_fast'))
21 num_segs = 1;
22elseif(strcmp(type, 'sim'))
23 num_segs = 2;
24elseif(strcmp(type, 'sqcif'))
25 num_segs = 3;
26elseif(strcmp(type, 'qcif'))
27 num_segs = 4;
28elseif(strcmp(type, 'cif'))
29 num_segs = 8;
30elseif(strcmp(type, 'vga'))
31 num_segs = 13;
32elseif(strcmp(type, 'wuxga'))
33 num_segs = 32;
34end
35
36path(path, [toolDir,'/MultiNcut']);
37path(path, common);
38
39img_filename = [dataDir, '/1.bmp'];
40%I=imread(img_filename);
41%I = rgb2gray(I);
42
43I = readImage(img_filename);
44
45%% Self check params
46tol = 0.1;
47elapsed = zeros(1,2);
48rows = size(I,1);
49cols = size(I,2);
50fprintf(1,'Input size\t\t- (%dx%d)\n', rows, cols);
51
52%% Timing
53start = photonStartTiming;
54
55[SegLabel,eigenVectors,eigenValues]= MNcut(I,num_segs);
56
57%% Timing
58stop = photonEndTiming;
59
60temp = photonReportTiming(start, stop);
61elapsed(1) = elapsed(1) + temp(1);
62elapsed(2) = elapsed(2) + temp(2);
63
64%% Self checking
65writeMatrix(SegLabel, dataDir);
66
67%% Timing
68photonPrintTiming(elapsed);
69
70for j=1:size(SegLabel,3),
71 [gx,gy] = gradient(SegLabel(:,:,j));
72 bw = (abs(gx)>0.1) + (abs(gy) > 0.1);
73
74 figure(1);clf; J1=showmask(double(I),bw); imagesc(J1);axis image; axis off;
75 set(gca, 'Position', [0 0 1 1]);
76end
77
78