diff options
| author | leochanj105 <leochanj@live.unc.edu> | 2020-10-23 02:12:49 -0400 |
|---|---|---|
| committer | leochanj105 <leochanj@live.unc.edu> | 2020-10-23 02:12:49 -0400 |
| commit | e23e931be4776b89149fdb2596f47096e6cdb78c (patch) | |
| tree | faf3963cc501f103cd2554553ec74ce21157b42e /SD-VBS/benchmarks/disparity/src | |
| parent | e2d933df44b7b387b41c8c7805393ad3857c4448 (diff) | |
| parent | e0217a963c6c0e0667d41d075038685956bcfacf (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/disparity/src')
| -rw-r--r-- | SD-VBS/benchmarks/disparity/src/c/script_disparity.c | 18 |
1 files changed, 7 insertions, 11 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; |
