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/mser/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/mser/src/c')
| -rw-r--r-- | SD-VBS/benchmarks/mser/src/c/script_mser.c | 15 |
1 files changed, 6 insertions, 9 deletions
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; |
