diff options
Diffstat (limited to 'SD-VBS/benchmarks/stitch/src/matlab/matchFeatures.m')
| -rwxr-xr-x | SD-VBS/benchmarks/stitch/src/matlab/matchFeatures.m | 13 |
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 @@ | |||
| 1 | function retMatch=matchFeatures(vecF1, vecF2) | ||
| 2 | [n1 temp]=size(vecF1); | ||
| 3 | [n2 temp]=size(vecF2); | ||
| 4 | |||
| 5 | retMatch=zeros(0,2); | ||
| 6 | |||
| 7 | for 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 | ||
| 12 | end | ||
| 13 | |||
