diff options
Diffstat (limited to 'SD-VBS/benchmarks/tracking/src/c')
-rw-r--r-- | SD-VBS/benchmarks/tracking/src/c/script_tracking.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/SD-VBS/benchmarks/tracking/src/c/script_tracking.c b/SD-VBS/benchmarks/tracking/src/c/script_tracking.c index bb48ace..c0af2d7 100644 --- a/SD-VBS/benchmarks/tracking/src/c/script_tracking.c +++ b/SD-VBS/benchmarks/tracking/src/c/script_tracking.c | |||
@@ -93,22 +93,18 @@ int main(int argc, char* argv[]) | |||
93 | 93 | ||
94 | I2D* images[counter]; | 94 | I2D* images[counter]; |
95 | /** Read input image **/ | 95 | /** Read input image **/ |
96 | for(count=1; count<=counter; count++) | 96 | for(count=1; count<=counter; count++){ |
97 | { | 97 | /** Read Image **/ |
98 | /** Read image **/ | 98 | scanf("%s", im1); |
99 | printf("Input image %d: ", count); | ||
100 | scanf("%s", im1); | ||
101 | images[count - 1] = readImage(im1); | 99 | images[count - 1] = readImage(im1); |
102 | if(count == 1) Ic = readImage(im1); | 100 | if(count == 1) Ic = readImage(im1); |
103 | } | 101 | } |
104 | 102 | ||
105 | 103 | ||
106 | rows = Ic->height; | 104 | rows = Ic->height; |
107 | cols = Ic->width; | 105 | cols = Ic->width; |
108 | 106 | ||
109 | printf("start\n"); | 107 | for_each_job { |
110 | for_each_job{ | ||
111 | |||
112 | /** IMAGE PRE-PROCESSING **/ | 108 | /** IMAGE PRE-PROCESSING **/ |
113 | 109 | ||
114 | /** Blur the image to remove noise - weighted avergae filter **/ | 110 | /** Blur the image to remove noise - weighted avergae filter **/ |
@@ -230,8 +226,7 @@ int main(int argc, char* argv[]) | |||
230 | fFreeHandle(newpoints); | 226 | fFreeHandle(newpoints); |
231 | } | 227 | } |
232 | } | 228 | } |
233 | printf("end..\n"); | 229 | #ifdef CHECK |
234 | #ifdef CHECK | ||
235 | /* Self checking */ | 230 | /* Self checking */ |
236 | { | 231 | { |
237 | int ret=0; | 232 | int ret=0; |