summaryrefslogtreecommitdiffstats
path: root/SD-VBS/benchmarks/sift
diff options
context:
space:
mode:
authorleochanj105 <leochanj@live.unc.edu>2020-10-23 02:12:49 -0400
committerleochanj105 <leochanj@live.unc.edu>2020-10-23 02:12:49 -0400
commite23e931be4776b89149fdb2596f47096e6cdb78c (patch)
treefaf3963cc501f103cd2554553ec74ce21157b42e /SD-VBS/benchmarks/sift
parente2d933df44b7b387b41c8c7805393ad3857c4448 (diff)
parente0217a963c6c0e0667d41d075038685956bcfacf (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')
-rw-r--r--SD-VBS/benchmarks/sift/data/cif/12345.txt20
-rw-r--r--SD-VBS/benchmarks/sift/src/c/script_sift.c9
2 files changed, 3 insertions, 26 deletions
diff --git a/SD-VBS/benchmarks/sift/data/cif/12345.txt b/SD-VBS/benchmarks/sift/data/cif/12345.txt
deleted file mode 100644
index daa6c4e..0000000
--- a/SD-VBS/benchmarks/sift/data/cif/12345.txt
+++ /dev/null
@@ -1,20 +0,0 @@
1sift-cif none 24 none 5 104051864 12345 0 0 0
2sift-cif none 24 none 5 96525328 12345 1 0 0
3sift-cif none 24 none 5 96277128 12345 2 0 0
4sift-cif none 24 none 5 96178952 12345 3 0 0
5sift-cif none 24 none 5 95490272 12345 4 0 0
6sift-cif none 10 none 5 103447040 12345 0 0 0
7sift-cif none 10 none 5 96958904 12345 1 0 0
8sift-cif none 10 none 5 96584488 12345 2 0 0
9sift-cif none 10 none 5 96588392 12345 3 0 0
10sift-cif none 10 none 5 96627096 12345 4 0 0
11sift-cif none 10 none 5 103573096 12345 0 0 0
12sift-cif none 10 none 5 96952456 12345 1 0 0
13sift-cif none 10 none 5 96591240 12345 2 0 0
14sift-cif none 10 none 5 96764048 12345 3 0 0
15sift-cif none 10 none 5 96623720 12345 4 0 0
16sift-cif none 25 none 5 102780536 12345 0 0 0
17sift-cif none 25 none 5 96114424 12345 1 0 0
18sift-cif none 25 none 5 95936440 12345 2 0 0
19sift-cif none 25 none 5 95819504 12345 3 0 0
20sift-cif none 25 none 5 95930288 12345 4 0 0
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;