summaryrefslogtreecommitdiffstats
path: root/SD-VBS/benchmarks/stitch
diff options
context:
space:
mode:
Diffstat (limited to 'SD-VBS/benchmarks/stitch')
-rw-r--r--SD-VBS/benchmarks/stitch/data/cif/12345.txt10
-rwxr-xr-xSD-VBS/benchmarks/stitch/src/matlab/calculateH.m24
-rwxr-xr-xSD-VBS/benchmarks/stitch/src/matlab/dist2.m31
-rwxr-xr-xSD-VBS/benchmarks/stitch/src/matlab/extractFeatures.m56
-rwxr-xr-xSD-VBS/benchmarks/stitch/src/matlab/getANMS.m25
-rwxr-xr-xSD-VBS/benchmarks/stitch/src/matlab/getDirParamLocal.m4
-rwxr-xr-xSD-VBS/benchmarks/stitch/src/matlab/harris.m37
-rwxr-xr-xSD-VBS/benchmarks/stitch/src/matlab/main.m47
-rwxr-xr-xSD-VBS/benchmarks/stitch/src/matlab/matchFeatures.m13
-rw-r--r--SD-VBS/benchmarks/stitch/src/matlab/pics/matched_base_cur.jpgbin22688 -> 0 bytes
-rw-r--r--SD-VBS/benchmarks/stitch/src/matlab/pics/ransaced_feat.jpgbin19198 -> 0 bytes
-rwxr-xr-xSD-VBS/benchmarks/stitch/src/matlab/printImage.m2
-rwxr-xr-xSD-VBS/benchmarks/stitch/src/matlab/ransac.m19
-rwxr-xr-xSD-VBS/benchmarks/stitch/src/matlab/readData.m9
-rwxr-xr-xSD-VBS/benchmarks/stitch/src/matlab/script_run_profile.m38
-rwxr-xr-xSD-VBS/benchmarks/stitch/src/matlab/showInterestPoints.m7
-rwxr-xr-xSD-VBS/benchmarks/stitch/src/matlab/transformH.m13
17 files changed, 0 insertions, 335 deletions
diff --git a/SD-VBS/benchmarks/stitch/data/cif/12345.txt b/SD-VBS/benchmarks/stitch/data/cif/12345.txt
deleted file mode 100644
index f0c220c..0000000
--- a/SD-VBS/benchmarks/stitch/data/cif/12345.txt
+++ /dev/null
@@ -1,10 +0,0 @@
1stitch-cif none 11 none 5 61208488 12345 0 0 0
2stitch-cif none 11 none 5 58193420 12345 1 0 0
3stitch-cif none 11 none 5 57242564 12345 2 0 0
4stitch-cif none 11 none 5 59547024 12345 3 0 0
5stitch-cif none 11 none 5 59163272 12345 4 0 0
6stitch-cif none 6 none 5 59262136 12345 0 0 0
7stitch-cif none 6 none 5 58786528 12345 1 0 0
8stitch-cif none 6 none 5 58322800 12345 2 0 0
9stitch-cif none 6 none 5 76624688 12345 3 0 0
10stitch-cif none 6 none 5 56600464 12345 4 0 0
diff --git a/SD-VBS/benchmarks/stitch/src/matlab/calculateH.m b/SD-VBS/benchmarks/stitch/src/matlab/calculateH.m
deleted file mode 100755
index caefd74..0000000
--- a/SD-VBS/benchmarks/stitch/src/matlab/calculateH.m
+++ /dev/null
@@ -1,24 +0,0 @@
1function retH=calculateH(pnt1, pnt2)
2
3[n temp]=size(pnt1);
4
5X=zeros(0,8);
6b=zeros(0,1);
7
8for i=1:n
9 X=[X; pnt1(i,1) pnt1(i,2) 1 0 0 0 -pnt2(i,1)*pnt1(i,1) -pnt2(i,1)*pnt1(i,2);0, 0, 0, pnt1(i,1), pnt1(i,2), 1, -pnt2(i,2)*pnt1(i,1), -pnt2(i,2)*pnt1(i,2)];
10 b=[b; pnt2(i,1); pnt2(i,2)];
11end
12
13if n==4
14 %if abs(det(X)~=0
15 H=X^(-1)*b;
16 %else
17 % H=[0 0 0; 0 0 0; 0 0 1];
18 %end
19else
20 Xt = X';
21 H=(Xt*X)^(-1)*Xt*b;
22end
23
24retH=[H(1) H(2) H(3);H(4) H(5) H(6);H(7) H(8) 1];
diff --git a/SD-VBS/benchmarks/stitch/src/matlab/dist2.m b/SD-VBS/benchmarks/stitch/src/matlab/dist2.m
deleted file mode 100755
index 89116ac..0000000
--- a/SD-VBS/benchmarks/stitch/src/matlab/dist2.m
+++ /dev/null
@@ -1,31 +0,0 @@
1function n2 = dist2(x, c)
2%DIST2 Calculates squared distance between two sets of points.
3%
4% Description
5% D = DIST2(X, C) takes two matrices of vectors and calculates the
6% squared Euclidean distance between them. Both matrices must be of
7% the same column dimension. If X has M rows and N columns, and C has
8% L rows and N columns, then the result has M rows and L columns. The
9% I, Jth entry is the squared distance from the Ith row of X to the
10% Jth row of C.
11%
12% See also
13% GMMACTIV, KMEANS, RBFFWD
14%
15
16% Copyright (c) Christopher M Bishop, Ian T Nabney (1996, 1997)
17
18[ndata, dimx] = size(x);
19[ncentres, dimc] = size(c);
20if dimx ~= dimc
21 error('Data dimension does not match dimension of centres')
22end
23
24ct = c';
25opt = (x.^2)';
26op2t = (x.^2)';
27tempT = (ones(ncentres, 1) * sum(opt, 1))';
28n2 = tempT + ones(ndata, 1) * sum(op2t,1) - 2.*(x*ct);
29
30
31
diff --git a/SD-VBS/benchmarks/stitch/src/matlab/extractFeatures.m b/SD-VBS/benchmarks/stitch/src/matlab/extractFeatures.m
deleted file mode 100755
index 38d2f7c..0000000
--- a/SD-VBS/benchmarks/stitch/src/matlab/extractFeatures.m
+++ /dev/null
@@ -1,56 +0,0 @@
1function vecF=extractFeatures(I, x, y, dataDir)
2
3Igray = I;
4w = (1/16)*[1 4 6 4 1];
5[n temp]=size(x);
6
7%SUB sample rate s=5
8wt = w';
9Iconv=conv2(w, wt, Igray, 'same');
10Iconv=conv2(w, wt, Iconv, 'same');
11Isub=Iconv(1:5:end,1:5:end);
12[nr nc]=size(Isub);
13
14Xsub=min(floor(x/5)+1, nc-4);
15Ysub=min(floor(y/5)+1, nr-4);
16
17if(length(Xsub) < 6 || length(Ysub) < 10)
18 vecF = [Xsub Ysub];
19 return;
20end
21
22newSize = 4;
23[rows, cols] = size(I);
24if(rows > 32 & cols >32)
25 newSize = 64;
26end
27
28for i=1:n
29
30 minValy = 3;
31 minValx = 3;
32 if( Ysub(i) < 4)
33 Ysub(i) = 4;
34 end
35 if( Xsub(i) < 4)
36 Xsub(i) = 4;
37 end
38
39 if( Ysub(i) > size(Isub,1)-4)
40 Ysub(i) = size(Isub,1)-4;
41 end
42 if( Xsub(i) > size(Isub,2)-4)
43 Xsub(i) = size(Isub,2)-4;
44 end
45
46 vecF(i,:)=reshape(Isub(Ysub(i)-minValy:Ysub(i)+4,Xsub(i)-minValx:Xsub(i)+4),1,newSize);
47
48 %normalization
49 vecF(i,:)=vecF(i,:)-mean(vecF(i,:));
50 vecF(i,:)=vecF(i,:)/std(vecF(i,:));
51 %imagesc(reshape(vecF(i,:),8,8)); colormap gray
52 %drawnow
53 %pause
54end
55
56
diff --git a/SD-VBS/benchmarks/stitch/src/matlab/getANMS.m b/SD-VBS/benchmarks/stitch/src/matlab/getANMS.m
deleted file mode 100755
index caece31..0000000
--- a/SD-VBS/benchmarks/stitch/src/matlab/getANMS.m
+++ /dev/null
@@ -1,25 +0,0 @@
1function [interestPnts]=getANMS(x, y, v, r, dataDir)
2%interestPnts=[x y v]
3MAX_LIMIT=100000000;
4C_ROBUST=0.9;
5r_sq=r^2;
6points=[x y v];
7[n temp]=size(v);
8[srtdV srtdVIdx]=sort(v,'descend');
9srtdPnts=points(srtdVIdx,:);
10
11interestPnts=zeros(0,3);
12
13suppressR=ones(n,1)*MAX_LIMIT;
14supId=find(suppressR>r_sq);
15
16iter = 0;
17while length(supId)>0
18 interestPnts=[interestPnts; srtdPnts(supId(1),:)];
19 srtdPnts=srtdPnts(supId(2:end),:);
20 suppressR=suppressR(supId(2:end),:);
21
22 suppressR=min(suppressR,(C_ROBUST*interestPnts(end,3)>srtdPnts(:,3)).*((srtdPnts(:,1)-interestPnts(end,1)).^2 + (srtdPnts(:,2)-interestPnts(end,2)).^2)+(C_ROBUST*interestPnts(end,3)<=srtdPnts(:,3))*MAX_LIMIT);
23 supId=find(suppressR>r_sq);
24 iter = iter + 1;
25end
diff --git a/SD-VBS/benchmarks/stitch/src/matlab/getDirParamLocal.m b/SD-VBS/benchmarks/stitch/src/matlab/getDirParamLocal.m
deleted file mode 100755
index 7b36886..0000000
--- a/SD-VBS/benchmarks/stitch/src/matlab/getDirParamLocal.m
+++ /dev/null
@@ -1,4 +0,0 @@
1function DIR_PARAM=getDirParam
2DIR_PARAM.main_dir=pwd;
3DIR_PARAM.data_dir=fullfile(DIR_PARAM.main_dir,'data');
4DIR_PARAM.report_dir=fullfile(DIR_PARAM.main_dir,'report');
diff --git a/SD-VBS/benchmarks/stitch/src/matlab/harris.m b/SD-VBS/benchmarks/stitch/src/matlab/harris.m
deleted file mode 100755
index 423330e..0000000
--- a/SD-VBS/benchmarks/stitch/src/matlab/harris.m
+++ /dev/null
@@ -1,37 +0,0 @@
1
2% Sample code for detecting Harris corners, following
3% Brown et al, CVPR 2005
4% by Alyosha Efros, so probably buggy...
5
6