diff options
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; |