summaryrefslogtreecommitdiffstats
path: root/SD-VBS/benchmarks/stitch/src/c
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/stitch/src/c
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/stitch/src/c')
-rw-r--r--SD-VBS/benchmarks/stitch/src/c/script_stitch.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/SD-VBS/benchmarks/stitch/src/c/script_stitch.c b/SD-VBS/benchmarks/stitch/src/c/script_stitch.c
index 00c9a93..b7611f1 100644
--- a/SD-VBS/benchmarks/stitch/src/c/script_stitch.c
+++ b/SD-VBS/benchmarks/stitch/src/c/script_stitch.c
@@ -16,16 +16,13 @@ int main(int argc, char* argv[])
16 I2D *Icur; 16 I2D *Icur;
17 int i, j; 17 int i, j;
18 char im1[100], im2[100]; 18 char im1[100], im2[100];
19
20 19
21 printf("Input image: ");
22 scanf("%s", im1); 20 scanf("%s", im1);
23 Icur = readImage(im1); 21 Icur = readImage(im1);
24 rows = Icur->height; 22 rows = Icur->height;
25 cols = Icur->width; 23 cols = Icur->width;
26 24
27 printf("start\n"); 25 for_each_job {
28 for_each_job{
29 v = harris(Icur); 26 v = harris(Icur);
30 interestPnts = getANMS(v, 24); 27 interestPnts = getANMS(v, 24);
31 int1 = fMallocHandle(interestPnts->height, 1); 28 int1 = fMallocHandle(interestPnts->height, 1);
@@ -38,10 +35,8 @@ int main(int argc, char* argv[])
38 35
39 Fcur = extractFeatures(Icur, int1, int2); 36 Fcur = extractFeatures(Icur, int1, int2);
40 } 37 }
41 printf("end..\n");
42
43 38
44#ifdef CHECK 39#ifdef CHECK
45 /** Self checking - use expected.txt from data directory **/ 40 /** Self checking - use expected.txt from data directory **/
46 { 41 {
47 int ret=0; 42 int ret=0;