summaryrefslogtreecommitdiffstats
path: root/SD-VBS/benchmarks/sift
diff options
context:
space:
mode:
Diffstat (limited to 'SD-VBS/benchmarks/sift')
-rw-r--r--SD-VBS/benchmarks/sift/Makefile3
-rw-r--r--SD-VBS/benchmarks/sift/data/Makefile3
-rw-r--r--SD-VBS/benchmarks/sift/data/qcif/1.bmpbin62262 -> 0 bytes
-rw-r--r--SD-VBS/benchmarks/sift/data/qcif/Makefile8
-rwxr-xr-xSD-VBS/benchmarks/sift/data/qcif/VBS_Ver1bin97049 -> 0 bytes
-rw-r--r--SD-VBS/benchmarks/sift/data/qcif/expected.m3
-rw-r--r--SD-VBS/benchmarks/sift/data/qcif/expected_C.txt3
-rwxr-xr-xSD-VBS/benchmarks/sift/data/qcif/im1_qcif.tifbin76338 -> 0 bytes
-rw-r--r--SD-VBS/benchmarks/sift/src/c/diffss.c53
-rw-r--r--SD-VBS/benchmarks/sift/src/c/doubleSize.c55
-rw-r--r--SD-VBS/benchmarks/sift/src/c/filterBoundaryPoints.c61
-rw-r--r--SD-VBS/benchmarks/sift/src/c/gaussianss.c185
-rw-r--r--SD-VBS/benchmarks/sift/src/c/halveSize.c35
-rw-r--r--SD-VBS/benchmarks/sift/src/c/imsmooth.c104
-rw-r--r--SD-VBS/benchmarks/sift/src/c/script_sift.c80
-rw-r--r--SD-VBS/benchmarks/sift/src/c/sift.c314
-rw-r--r--SD-VBS/benchmarks/sift/src/c/sift.h27
-rw-r--r--SD-VBS/benchmarks/sift/src/c/siftlocalmax.c247
-rw-r--r--SD-VBS/benchmarks/sift/src/c/siftrefinemx.c196
19 files changed, 0 insertions, 1377 deletions
diff --git a/SD-VBS/benchmarks/sift/Makefile b/SD-VBS/benchmarks/sift/Makefile
deleted file mode 100644
index 60cc0ec..0000000
--- a/SD-VBS/benchmarks/sift/Makefile
+++ /dev/null
@@ -1,3 +0,0 @@
1include ../../common/makefiles/Makefile.include
2include $(MAKEFILE_COMMON_DIR)/Makefile.recurse
3
diff --git a/SD-VBS/benchmarks/sift/data/Makefile b/SD-VBS/benchmarks/sift/data/Makefile
deleted file mode 100644
index ba33d35..0000000
--- a/SD-VBS/benchmarks/sift/data/Makefile
+++ /dev/null
@@ -1,3 +0,0 @@
1include ../../../common/makefiles/Makefile.include
2include $(MAKEFILE_COMMON_DIR)/Makefile.recurse
3
diff --git a/SD-VBS/benchmarks/sift/data/qcif/1.bmp b/SD-VBS/benchmarks/sift/data/qcif/1.bmp
deleted file mode 100644
index 4fdba98..0000000
--- a/SD-VBS/benchmarks/sift/data/qcif/1.bmp
+++ /dev/null
Binary files differ
diff --git a/SD-VBS/benchmarks/sift/data/qcif/Makefile b/SD-VBS/benchmarks/sift/data/qcif/Makefile
deleted file mode 100644
index 617e3c1..0000000
--- a/SD-VBS/benchmarks/sift/data/qcif/Makefile
+++ /dev/null
@@ -1,8 +0,0 @@
1INPUT=qcif
2include ../../../../common/makefiles/Makefile.include
3
4BMARK=sift
5include $(MAKEFILE_COMMON_DIR)/Makefile.common
6
7
8
diff --git a/SD-VBS/benchmarks/sift/data/qcif/VBS_Ver1 b/SD-VBS/benchmarks/sift/data/qcif/VBS_Ver1
deleted file mode 100755
index 6e9d761..0000000
--- a/SD-VBS/benchmarks/sift/data/qcif/VBS_Ver1
+++ /dev/null
Binary files differ
diff --git a/SD-VBS/benchmarks/sift/data/qcif/expected.m b/SD-VBS/benchmarks/sift/data/qcif/expected.m
deleted file mode 100644
index 265db16..0000000
--- a/SD-VBS/benchmarks/sift/data/qcif/expected.m
+++ /dev/null
@@ -1,3 +0,0 @@
1136.999609 75.999406 83.999897 112.000750 119.999331 122.000419 132.000337 39.000010 51.001873 44.000020 61.999391 14.000416 25.000425 47.998145 33.000173 55.999848 20.001075 21.999253 53.998983 3.998740 4.999613 19.999868 43.000763 14.997708 15.002952 26.998145 19.002013
2113.000088 76.000660 129.999841 130.999945 109.999738 96.999934 132.000066 139.999331 15.000735 8.999283 17.000513 60.999702 14.000113 50.999175 36.999671 49.000425 52.000482 59.000256 20.997062 4.001153 67.001962 27.999830 31.000904 14.998128 26.998973 15.997683 21.000467
30.000275 2.000956 2.000776 1.999298 1.999671 1.999964 2.002015 1.999710 0.000119 1.001356 0.997834 2.002273 2.001115 2.000370 0.001001 0.000664 0.999350 1.000703 1.000935 1.999379 2.004628 1.998750 2.002175 0.000899 0.002673 0.003054 0.999563
diff --git a/SD-VBS/benchmarks/sift/data/qcif/expected_C.txt b/SD-VBS/benchmarks/sift/data/qcif/expected_C.txt
deleted file mode 100644
index f330fc0..0000000
--- a/SD-VBS/benchmarks/sift/data/qcif/expected_C.txt
+++ /dev/null
@@ -1,3 +0,0 @@
1136.999603 75.999405 83.999893 112.000748 119.999329 122.000420 132.000336 39.000011 51.001873 44.000019 61.999390 14.000417 25.000425 47.998146 33.000172 55.999847 20.001074 21.999252 53.998981 3.998740 4.999613 19.999868 43.000763 14.997708 15.002952 26.998144 19.002012
2113.000092 76.000664 129.999847 130.999939 109.999741 96.999931 132.000061 139.999329 15.000735 8.999284 17.000513 60.999702 14.000113 50.999176 36.999672 49.000423 52.000481 59.000256 20.997063 4.001153 67.001961 27.999830 31.000904 14.998128 26.998974 15.997683 21.000467
30.000275 2.000956 2.000776 1.999298 1.999671 1.999964 2.002015 1.999710 0.000119 1.001356 0.997834 2.002273 2.001115 2.000370 0.001001 0.000664 0.999350 1.000703 1.000935 1.999379 2.004628 1.998750 2.002175 0.000899 0.002673 0.003054 0.999563
diff --git a/SD-VBS/benchmarks/sift/data/qcif/im1_qcif.tif b/SD-VBS/benchmarks/sift/data/qcif/im1_qcif.tif
deleted file mode 100755
index d6e7b06..0000000
--- a/SD-VBS/benchmarks/sift/data/qcif/im1_qcif.tif
+++ /dev/null
Binary files differ
diff --git a/SD-VBS/benchmarks/sift/src/c/diffss.c b/SD-VBS/benchmarks/sift/src/c/diffss.c
deleted file mode 100644
index 683cbe7..0000000
--- a/SD-VBS/benchmarks/sift/src/c/diffss.c
+++ /dev/null
@@ -1,53 +0,0 @@
1/********************************
2Author: Sravanthi Kota Venkata
3********************************/
4
5#include "sift.h"
6
7/**
8 DIFFSS Difference of scale space
9 Returns a scale space DSS obtained by subtracting
10 consecutive levels of the scale space SS.
11
12 In SIFT, this function is used to compute the difference of
13 Gaussian scale space from the Gaussian scale space of an image.
14**/
15
16F2D** diffss(F2D** ss, int num, int intervals)
17{
18 F2D** dss;
19 int o, sizeM, sizeN, s, i, j;
20 F2D *current, *in1, *in2;
21
22 dss = malloc(num*intervals*sizeof(F2D*));
23
24 for(o=0; o<num; o++)
25 {
26 for(s=0; s<(intervals-1); s++)
27 {
28 sizeM = ss[o*intervals+s]->height;
29 sizeN = ss[o*intervals+s]->width;
30
31 dss[o*intervals+s] = fMallocHandle(sizeM, sizeN);
32
33 current = dss[o*intervals+s];
34 in1 = ss[o*intervals+s+1];
35 in2 = ss[o*intervals+s];
36
37 for(i=0; i<sizeM; i++)
38 {
39 for(j=0; j<sizeN; j++)
40 {
41 subsref(current,i,j) = subsref(in1,i,j) - subsref(in2,i,j);
42 }
43 }
44 }
45 }
46
47 return dss;
48
49}
50
51
52
53
diff --git a/SD-VBS/benchmarks/sift/src/c/doubleSize.c b/SD-VBS/benchmarks/sift/src/c/doubleSize.c
deleted file mode 100644
index dd17f77..0000000
--- a/SD-VBS/benchmarks/sift/src/c/doubleSize.c
+++ /dev/null
@@ -1,55 +0,0 @@
1/********************************
2Author: Sravanthi Kota Venkata
3********************************/
4
5#include "sift.h"
6
7F2D* doubleSize(F2D* I)
8{
9 F2D *J;
10 int M, N, i, j;
11
12 M = I->height;
13 N = I->width;
14 J = fSetArray(2*M, 2*N, 0);
15
16 for(i=0; i<M; i++)
17 {
18 for(j=0; j<N; j++)
19 {
20 subsref(J,2*i,j*2) = subsref(I,i,j);
21 }
22 }
23
24 for(i=0; i<M-1; i++)
25 {
26 for(j=0; j<N-1; j++)
27 {
28 subsref(J,i*2+1,j*2+1) = (0.25 * (subsref(I,i,j) + subsref(I,i+1,j) + subsref(I,i,j+1) + subsref(I,(i+1),j+1)));
29 }
30 }
31
32 for(i=0; i<M-1; i++)
33 {
34 for(j=0; j<N; j++)
35 {
36 subsref(J,i*2+1,j*2) = (0.5 * (subsref(I,i,j) + subsref(I,i+1,j)));
37 }
38 }
39
40 for(i=0; i<M; i++)
41 {
42 for(j=0; j<N-1; j++)
43 {
44 subsref(J,i*2,j*2+1) = (0.5 * (subsref(I,i,j) + subsref(I,i,j+1)));
45 }
46 }
47
48 return J;
49}
50
51
52
53
54
55
diff --git a/SD-VBS/benchmarks/sift/src/c/filterBoundaryPoints.c b/SD-VBS/benchmarks/sift/src/c/filterBoundaryPoints.c
deleted file mode 100644
index c68e717..0000000
--- a/SD-VBS/benchmarks/sift/src/c/filterBoundaryPoints.c
+++ /dev/null
@@ -1,61 +0,0 @@
1#include "sift.h"
2
3/**
4 Filter out points on the boundaries.
5 The function returns oframes, which
6 contains the row, col and the interval number
7**/
8
9F2D* filterBoundaryPoints(int M, int N, F2D* oframes)
10{
11 int i, k=0, m=0;
12 int cnt;
13 I2D* sel;
14 F2D *ret;
15
16 cnt = 0;
17 for(i=0; i<oframes->width; i++)
18 {
19 if(asubsref(oframes,i)>3 && asubsref(oframes,i)<(N-3) &&