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/tracking/src/c | |
| 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/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; |
