summaryrefslogtreecommitdiffstats
path: root/SD-VBS/benchmarks
diff options
context:
space:
mode:
authorleochanj105 <leochanj@live.unc.edu>2020-10-23 02:12:49 -0400
committerleochanj105 <leochanj@live.unc.edu>2020-10-23 02:12:49 -0400
commite23e931be4776b89149fdb2596f47096e6cdb78c (patch)
treefaf3963cc501f103cd2554553ec74ce21157b42e /SD-VBS/benchmarks
parente2d933df44b7b387b41c8c7805393ad3857c4448 (diff)
parente0217a963c6c0e0667d41d075038685956bcfacf (diff)
Merge branch 'sd-vbs' of ssh://rtsrv.cs.unc.edu/public/mc2-scripts-and-benchmarks into sd-vbs
Diffstat (limited to 'SD-VBS/benchmarks')
-rw-r--r--SD-VBS/benchmarks/disparity/data/cif/12345.txt30
-rw-r--r--SD-VBS/benchmarks/disparity/data/fullhd/12345.txt20
-rw-r--r--SD-VBS/benchmarks/disparity/src/c/script_disparity.c18
-rw-r--r--SD-VBS/benchmarks/localization/data/cif/12345.txt15
-rw-r--r--SD-VBS/benchmarks/localization/data/vga/12345.txt5
-rw-r--r--SD-VBS/benchmarks/localization/src/c/script_localization.c20
-rw-r--r--SD-VBS/benchmarks/mser/data/cif/12345.txt20
-rw-r--r--SD-VBS/benchmarks/mser/data/fullhd/12345.txt5
-rw-r--r--SD-VBS/benchmarks/mser/src/c/script_mser.c15
-rw-r--r--SD-VBS/benchmarks/multi_ncut/data/sim/12345.txt15
-rw-r--r--SD-VBS/benchmarks/multi_ncut/src/c/script_multi_ncut.c10
-rw-r--r--SD-VBS/benchmarks/sift/data/cif/12345.txt20
-rw-r--r--SD-VBS/benchmarks/sift/src/c/script_sift.c9
-rw-r--r--SD-VBS/benchmarks/stitch/data/cif/12345.txt10
-rw-r--r--SD-VBS/benchmarks/stitch/src/c/script_stitch.c11
-rw-r--r--SD-VBS/benchmarks/svm/src/c/script_svm.c23
-rw-r--r--SD-VBS/benchmarks/texture_synthesis/data/cif/12345.txt5
-rw-r--r--SD-VBS/benchmarks/texture_synthesis/src/c/script_texture_synthesis.c8
-rw-r--r--SD-VBS/benchmarks/tracking/data/cif/12345.txt5
-rw-r--r--SD-VBS/benchmarks/tracking/src/c/script_tracking.c17
20 files changed, 51 insertions, 230 deletions
diff --git a/SD-VBS/benchmarks/disparity/data/cif/12345.txt b/SD-VBS/benchmarks/disparity/data/cif/12345.txt
deleted file mode 100644
index 3dd9ffe..0000000
--- a/SD-VBS/benchmarks/disparity/data/cif/12345.txt
+++ /dev/null
@@ -1,30 +0,0 @@
1disparity-cif none 20 none 20 35311220 12345 0 0 0
2disparity-cif none 20 none 20 35151832 12345 1 0 0
3disparity-cif none 20 none 20 34643104 12345 2 0 0
4disparity-cif none 20 none 20 34641288 12345 3 0 0
5disparity-cif none 20 none 20 34671336 12345 4 0 0
6disparity-cif none 20 none 20 34709616 12345 5 0 0
7disparity-cif none 20 none 20 34779264 12345 6 0 0
8disparity-cif none 20 none 20 35022352 12345 7 0 0
9disparity-cif none 20 none 20 34799464 12345 8 0 0
10disparity-cif none 20 none 20 34794384 12345 9 0 0
11disparity-cif none 20 none 20 34796992 12345 10 0 0
12disparity-cif none 20 none 20 34681564 12345 11 0 0
13disparity-cif none 20 none 20 34667428 12345 12 0 0
14disparity-cif none 20 none 20 34687324 12345 13 0 0
15disparity-cif none 20 none 20 34694040 12345 14 0 0
16disparity-cif none 20 none 20 34672856 12345 15 0 0
17disparity-cif none 20 none 20 34699520 12345 16 0 0
18disparity-cif none 20 none 20 34716672 12345 17 0 0
19disparity-cif none 20 none 20 34686432 12345 18 0 0
20disparity-cif none 20 none 20 34692112 12345 19 0 0
21disparity-cif none 21 none 5 34821504 12345 0 0 0
22disparity-cif none 21 none 5 34748320 12345 1 0 0
23disparity-cif none 21 none 5 34746756 12345 2 0 0
24disparity-cif none 21 none 5 34736224 12345 3 0 0
25disparity-cif none 21 none 5 34877768 12345 4 0 0
26disparity-cif none 16 none 5 34706256 12345 0 0 0
27disparity-cif none 16 none 5 33841040 12345 1 0 0
28disparity-cif none 16 none 5 33794244 12345 2 0 0
29disparity-cif none 16 none 5 34052544 12345 3 0 0
30disparity-cif none 16 none 5 34092180 12345 4 0 0
diff --git a/SD-VBS/benchmarks/disparity/data/fullhd/12345.txt b/SD-VBS/benchmarks/disparity/data/fullhd/12345.txt
deleted file mode 100644
index dd9af28..0000000
--- a/SD-VBS/benchmarks/disparity/data/fullhd/12345.txt
+++ /dev/null
@@ -1,20 +0,0 @@
1disparity-fullhd none 7 none 20 963629056 12345 0 0 0
2disparity-fullhd none 7 none 20 967578880 12345 1 0 0
3disparity-fullhd none 7 none 20 968594368 12345 2 0 0
4disparity-fullhd none 7 none 20 964075264 12345 3 0 0
5disparity-fullhd none 7 none 20 966877696 12345 4 0 0
6disparity-fullhd none 7 none 20 968793728 12345 5 0 0
7disparity-fullhd none 7 none 20 968632064 12345 6 0 0
8disparity-fullhd none 7 none 20 964562432 12345 7 0 0
9disparity-fullhd none 7 none 20 968084800 12345 8 0 0
10disparity-fullhd none 7 none 20 964557120 12345 9 0 0
11disparity-fullhd none 7 none 20 967762496 12345 10 0 0
12disparity-fullhd none 7 none 20 967815040 12345 11 0 0
13disparity-fullhd none 7 none 20 967683328 12345 12 0 0
14disparity-fullhd none 7 none 20 967838912 12345 13 0 0
15disparity-fullhd none 7 none 20 964496384 12345 14 0 0
16disparity-fullhd none 7 none 20 967954432 12345 15 0 0
17disparity-fullhd none 7 none 20 965618496 12345 16 0 0
18disparity-fullhd none 7 none 20 968003008 12345 17 0 0
19disparity-fullhd none 7 none 20 967080000 12345 18 0 0
20disparity-fullhd none 7 none 20 965547456 12345 19 0 0
diff --git a/SD-VBS/benchmarks/disparity/src/c/script_disparity.c b/SD-VBS/benchmarks/disparity/src/c/script_disparity.c
index 431c02c..7d45ada 100644
--- a/SD-VBS/benchmarks/disparity/src/c/script_disparity.c
+++ b/SD-VBS/benchmarks/disparity/src/c/script_disparity.c
@@ -28,9 +28,7 @@ int main(int argc, char* argv[])
28 int WIN_SZ=8, SHIFT=64; 28 int WIN_SZ=8, SHIFT=64;
29 FILE* fp; 29 FILE* fp;
30 30
31 printf("Image 1: ");
32 scanf("%s", im1); 31 scanf("%s", im1);
33 printf("Image 2: ");
34 scanf("%s", im2); 32 scanf("%s", im2);
35#ifdef CHECK 33#ifdef CHECK
36 char checkFile[100] = "./expected_C.txt"; 34 char checkFile[100] = "./expected_C.txt";
@@ -86,17 +84,15 @@ int main(int argc, char* argv[])
86 Iright_moved = iSetArray(paddedRows, paddedCols, 0); 84 Iright_moved = iSetArray(paddedRows, paddedCols, 0);
87 85
88 range = iMallocHandle(1, 2); 86 range = iMallocHandle(1, 2);
89 printf("starting..\n"); 87 for_each_job {
90 for_each_job{ 88 retDisparity = getDisparity(imleft, imright, WIN_SZ, SHIFT,
91 retDisparity = getDisparity(imleft, imright, WIN_SZ, SHIFT, 89 minSAD, retDisp, halfWin,
92 minSAD, retDisp, halfWin, 90 IrightPadded, IleftPadded, Iright_moved,
93 IrightPadded, IleftPadded, Iright_moved, 91 retSAD, SAD, integralImg,
94 retSAD, SAD, integralImg, 92 range);
95 range);
96 } 93 }
97 printf("ending\n");
98 94
99#ifdef CHECK 95#ifdef CHECK
100 /** Self checking - use expected.txt from data directory **/ 96 /** Self checking - use expected.txt from data directory **/
101 { 97 {
102 int tol, ret=0; 98 int tol, ret=0;
diff --git a/SD-VBS/benchmarks/localization/data/cif/12345.txt b/SD-VBS/benchmarks/localization/data/cif/12345.txt
deleted file mode 100644
index 3db1af2..0000000
--- a/SD-VBS/benchmarks/localization/data/cif/12345.txt
+++ /dev/null
@@ -1,15 +0,0 @@
1localization-cif none 9 none 5 48076352 12345 0 0 0
2localization-cif none 9 none 5 43361112 12345 1 0 0
3localization-cif none 9 none 5 43366440 12345 2 0 0
4localization-cif none 9 none 5 43370196 12345 3 0 0
5localization-cif none 9 none 5 43342796 12345 4 0 0
6localization-cif none 9 none 5 49304636 12345 0 0 0
7localization-cif none 9 none 5 43263656 12345 1 0 0
8localization-cif none 9 none 5 43311788 12345 2 0 0
9localization-cif none 9 none 5 45305660 12345 3 0 0
10localization-cif none 9 none 5 45991472 12345 4 0 0
11localization-cif none 13 none 5 50834232 12345 0 0 0
12localization-cif none 13 none 5 45950604 12345 1 0 0
13localization-cif none 13 none 5 45906792 12345 2 0 0
14localization-cif none 13 none 5 45996860 12345 3 0 0
15localization-cif none 13 none 5 52359620 12345 4 0 0
diff --git a/SD-VBS/benchmarks/localization/data/vga/12345.txt b/SD-VBS/benchmarks/localization/data/vga/12345.txt
deleted file mode 100644
index af25656..0000000
--- a/SD-VBS/benchmarks/localization/data/vga/12345.txt
+++ /dev/null
@@ -1,5 +0,0 @@
1localization-vga none 29 none 5 162689456 12345 0 0 0
2localization-vga none 29 none 5 152758336 12345 1 0 0
3localization-vga none 29 none 5 152857504 12345 2 0 0
4localization-vga none 29 none 5 152713328 12345 3 0 0
5localization-vga none 29 none 5 152901152 12345 4 0 0
diff --git a/SD-VBS/benchmarks/localization/src/c/script_localization.c b/SD-VBS/benchmarks/localization/src/c/script_localization.c
index 3392320..ed37132 100644
--- a/SD-VBS/benchmarks/localization/src/c/script_localization.c
+++ b/SD-VBS/benchmarks/localization/src/c/script_localization.c
@@ -41,7 +41,6 @@ int main(int argc, char* argv[])
41 41
42 char im1[100]; 42 char im1[100];
43 43
44 printf("Input txt File: ");
45 scanf("%s", im1); 44 scanf("%s", im1);
46 45
47 fid = readFile(im1); 46 fid = readFile(im1);
@@ -83,11 +82,10 @@ int main(int argc, char* argv[])
83 F2D *randn; 82 F2D *randn;
84 83
85 randn = randWrapper(n,3); 84 randn = randWrapper(n,3);
86 printf("start\n"); 85 for_each_job {
87 for_each_job{ 86 fResetArray(pos,n, 3, 0);
88 fResetArray(pos,n, 3, 0); 87 fResetArray(vel,n, 3, 0);
89 fResetArray(vel,n, 3, 0); 88 fResetArray(ones,n,1,1);
90 fResetArray(ones,n,1,1);
91 89
92 { 90 {
93 int j; 91 int j;
@@ -95,7 +93,7 @@ int main(int argc, char* argv[])
95 for(j=0; j<3; j++) 93 for(j=0; j<3; j++)