Mercurial > hg > camir-aes2014
annotate toolboxes/FullBNT-1.0.7/KPMtools/optimalMatchingTest.m @ 0:e9a9cd732c1e tip
first hg version after svn
author | wolffd |
---|---|
date | Tue, 10 Feb 2015 15:05:51 +0000 |
parents | |
children |
rev | line source |
---|---|
wolffd@0 | 1 % Consider matching sources to detections |
wolffd@0 | 2 |
wolffd@0 | 3 % s1 d2 |
wolffd@0 | 4 % s2 d3 |
wolffd@0 | 5 % d1 |
wolffd@0 | 6 |
wolffd@0 | 7 a = optimalMatching([52;0.01]) |
wolffd@0 | 8 |
wolffd@0 | 9 % sources(:,i) = [x y] coords |
wolffd@0 | 10 sources = [0.1 0.7; 0.6 0.4]'; |
wolffd@0 | 11 detections = [0.2 0.2; 0.2 0.8; 0.7 0.1]'; |
wolffd@0 | 12 dst = sqdist(sources, detections) |
wolffd@0 | 13 |
wolffd@0 | 14 % a = [2 3] which means s1-d2, s2-d3 |
wolffd@0 | 15 a = optimalMatching(dst) |
wolffd@0 | 16 |
wolffd@0 | 17 % a = [0 1 2] which means d1-0, d2-s1, d3-s2 |
wolffd@0 | 18 a = optimalMatching(dst') |