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/sift/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/sift/src/c')
-rw-r--r-- | SD-VBS/benchmarks/sift/src/c/script_sift.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/SD-VBS/benchmarks/sift/src/c/script_sift.c b/SD-VBS/benchmarks/sift/src/c/script_sift.c index 0b2f106..ab39ae3 100644 --- a/SD-VBS/benchmarks/sift/src/c/script_sift.c +++ b/SD-VBS/benchmarks/sift/src/c/script_sift.c | |||
@@ -45,7 +45,6 @@ int main(int argc, char* argv[]) | |||
45 | unsigned int* startTime, *endTime, *elapsed; | 45 | unsigned int* startTime, *endTime, *elapsed; |
46 | 46 | ||
47 | char imSrc[100]; | 47 | char imSrc[100]; |
48 | printf("Input image: "); | ||
49 | scanf("%s", imSrc); | 48 | scanf("%s", imSrc); |
50 | im = readImage(imSrc); | 49 | im = readImage(imSrc); |
51 | image = fiDeepCopy(im); | 50 | image = fiDeepCopy(im); |
@@ -53,16 +52,14 @@ int main(int argc, char* argv[]) | |||
53 | cols = image->width; | 52 | cols = image->width; |
54 | 53 | ||
55 | 54 | ||
56 | printf("start\n"); | ||
57 | for_each_job{ | 55 | for_each_job{ |
58 | image = fiDeepCopy(im); | 56 | image = fiDeepCopy(im); |
59 | normalizeImage(image); | 57 | normalizeImage(image); |
60 | /** Extract sift features for the normalized image **/ | 58 | /** Extract sift features for the normalized image **/ |
61 | frames = sift(image); | 59 | frames = sift(image); |
62 | } | 60 | } |
63 | printf("end..\n"); | 61 | |
64 | 62 | #ifdef CHECK | |
65 | #ifdef CHECK | ||
66 | { | 63 | { |
67 | int ret=0; | 64 | int ret=0; |
68 | float tol = 0.2; | 65 | float tol = 0.2; |