diff options
| author | leochanj <jbakita@cs.unc.edu> | 2020-10-23 00:13:06 -0400 |
|---|---|---|
| committer | leochanj <jbakita@cs.unc.edu> | 2020-10-23 00:13:06 -0400 |
| commit | d427b910baffcc330b0b24d87c9b3216f306d0fb (patch) | |
| tree | ef312bc5757860a03673316be421c1624a5bb6b7 /SD-VBS | |
| parent | b839934c04b214c9bdab399628ee2b94a65bcd10 (diff) | |
| parent | a7c3210215bd1181ae93b23c313941dfb44519fb (diff) | |
merged
Diffstat (limited to 'SD-VBS')
| -rw-r--r-- | SD-VBS/benchmarks/disparity/src/c/script_disparity.c | 18 | ||||
| -rw-r--r-- | SD-VBS/benchmarks/localization/src/c/script_localization.c | 20 | ||||
| -rw-r--r-- | SD-VBS/benchmarks/mser/src/c/script_mser.c | 15 | ||||
| -rw-r--r-- | SD-VBS/benchmarks/multi_ncut/src/c/script_multi_ncut.c | 10 | ||||
| -rw-r--r-- | SD-VBS/benchmarks/sift/src/c/script_sift.c | 9 | ||||
| -rw-r--r-- | SD-VBS/benchmarks/stitch/src/c/script_stitch.c | 11 | ||||
| -rw-r--r-- | SD-VBS/benchmarks/svm/src/c/script_svm.c | 23 | ||||
| -rw-r--r-- | SD-VBS/benchmarks/texture_synthesis/src/c/script_texture_synthesis.c | 8 | ||||
| -rw-r--r-- | SD-VBS/benchmarks/tracking/src/c/script_tracking.c | 17 | ||||
| -rw-r--r-- | SD-VBS/common/makefiles/Makefile.common | 14 | ||||
| l--------- | SD-VBS/disparity_qcif | 1 | ||||
| l--------- | SD-VBS/localization_qcif | 1 | ||||
| l--------- | SD-VBS/mser_qcif | 1 | ||||
| l--------- | SD-VBS/multi_ncut_qcif | 1 | ||||
| -rw-r--r-- | SD-VBS/sd-vbsNames.txt | 9 | ||||
| l--------- | SD-VBS/sift_qcif | 1 | ||||
| l--------- | SD-VBS/stitch_qcif | 1 | ||||
| l--------- | SD-VBS/svm_qcif | 1 | ||||
| l--------- | SD-VBS/texture_synthesis_qcif | 1 | ||||
| l--------- | SD-VBS/tracking_qcif | 1 |
20 files changed, 78 insertions, 85 deletions
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/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++) |
| 96 | subsref(vel, i, j) += subsref(randn,i,j) * STDDEV_ODOVel; | 94 | subsref(vel, i, j) += subsref(randn,i,j) * STDDEV_ODOVel; |
| 97 | 95 | ||
| 98 | } | 96 | } |
| 99 | 97 | ||
| 100 | 98 | ||
| 101 | 99 | ||
| @@ -486,17 +484,15 @@ int main(int argc, char* argv[]) | |||
| 486 | subsref(resultMat,1,icount) = velOut; | 484 | subsref(resultMat,1,icount) = velOut; |
| 487 | subsref(resultMat,2,icount) = posOut; | 485 | subsref(resultMat,2,icount) = posOut; |
| 488 | } | 486 | } |
| 489 | 487 | ||
| 490 | fFreeHandle(sData); | 488 | fFreeHandle(sData); |
| 491 | 489 | ||
| 492 | |||
| 493 | if (asubsref(isEOF,0) == 1) | 490 | if (asubsref(isEOF,0) == 1) |
| 494 | break; | 491 | break; |
| 495 | } | 492 | } |
| 496 | } | 493 | } |
| 497 | printf("end..\n"); | ||
| 498 | 494 | ||
| 499 | #ifdef CHECK | 495 | #ifdef CHECK |
| 500 | 496 | ||
| 501 | // Self checking - use expected.txt from data directory | 497 | // Self checking - use expected.txt from data directory |
| 502 | { | 498 | { |
diff --git a/SD-VBS/benchmarks/mser/src/c/script_mser.c b/SD-VBS/benchmarks/mser/src/c/script_mser.c index d4a98cd..3e98f86 100644 --- a/SD-VBS/benchmarks/mser/src/c/script_mser.c +++ b/SD-VBS/benchmarks/mser/src/c/script_mser.c | |||
| @@ -33,7 +33,6 @@ int main(int argc, char* argv[]) | |||
| 33 | 33 | ||
| 34 | int ndims, nel, gdl, nmer; | 34 | int ndims, nel, gdl, nmer; |
| 35 | 35 | ||
| 36 | printf("Input Image: "); | ||
| 37 | scanf("%s", im1); | 36 | scanf("%s", im1); |
| 38 | 37 | ||
| 39 | I = readImage(im1); | 38 | I = readImage(im1); |
| @@ -74,19 +73,17 @@ int main(int argc, char* argv[]) | |||
| 74 | 73 | ||
| 75 | 74 | ||
| 76 | out = iMallocHandle(1, nmer); | 75 | out = iMallocHandle(1, nmer); |
| 77 | printf("start\n"); | 76 | for_each_job { |
| 78 | for_each_job{ | ||
| 79 | idx = mser(It, 2, subs_pt, nsubs_pt, strides_pt, visited_pt, dims, | 77 | idx = mser(It, 2, subs_pt, nsubs_pt, strides_pt, visited_pt, dims, |
| 80 | joins_pt, | 78 | joins_pt, |
| 81 | regions_pt, | 79 | regions_pt, |
| 82 | pairs_pt, | 80 | pairs_pt, |
| 83 | forest_pt, | 81 | forest_pt, |
| 84 | acc_pt, ell_pt, | 82 | acc_pt, ell_pt, |
| 85 | out); | 83 | out); |
| 86 | } | 84 | } |
| 87 | printf("end..\n"); | 85 | |
| 88 | 86 | #ifdef CHECK | |
| 89 | #ifdef CHECK | ||
| 90 | /** Self checking - use expected.txt from data directory **/ | 87 | /** Self checking - use expected.txt from data directory **/ |
| 91 | { | 88 | { |
| 92 | int tol, ret=0; | 89 | int tol, ret=0; |
diff --git a/SD-VBS/benchmarks/multi_ncut/src/c/script_multi_ncut.c b/SD-VBS/benchmarks/multi_ncut/src/c/script_multi_ncut.c index e4f7912..77c6b71 100644 --- a/SD-VBS/benchmarks/multi_ncut/src/c/script_multi_ncut.c +++ b/SD-VBS/benchmarks/multi_ncut/src/c/script_multi_ncut.c | |||
| @@ -28,7 +28,6 @@ int main(int argc, char* argv[]) | |||
| 28 | 28 | ||
| 29 | F2D *imageOut, *tempOut; | 29 | F2D *imageOut, *tempOut; |
| 30 | F2D *edgeWeights, *in; | 30 | F2D *edgeWeights, *in; |
| 31 | pr | ||
