summaryrefslogtreecommitdiffstats
path: root/SD-VBS/benchmarks/stitch/src/matlab/matchFeatures.m
diff options
context:
space:
mode:
Diffstat (limited to 'SD-VBS/benchmarks/stitch/src/matlab/matchFeatures.m')
-rwxr-xr-xSD-VBS/benchmarks/stitch/src/matlab/matchFeatures.m13
1 files changed, 13 insertions, 0 deletions
diff --git a/SD-VBS/benchmarks/stitch/src/matlab/matchFeatures.m b/SD-VBS/benchmarks/stitch/src/matlab/matchFeatures.m
new file mode 100755
index 0000000..7af77e0
--- /dev/null
+++ b/SD-VBS/benchmarks/stitch/src/matlab/matchFeatures.m
@@ -0,0 +1,13 @@
1function retMatch=matchFeatures(vecF1, vecF2)
2[n1 temp]=size(vecF1);
3[n2 temp]=size(vecF2);
4
5retMatch=zeros(0,2);
6
7for i=1:n1
8 [val id]=sort(dist2(vecF1(i,:),vecF2));
9 if val(2)~=0 & val(1)/val(2)<0.65
10 retMatch=[retMatch; i id(1)];
11 end
12end
13