summaryrefslogtreecommitdiffstats
path: root/SD-VBS/benchmarks/stitch/src/matlab/getANMS.m
diff options
context:
space:
mode:
Diffstat (limited to 'SD-VBS/benchmarks/stitch/src/matlab/getANMS.m')
-rwxr-xr-xSD-VBS/benchmarks/stitch/src/matlab/getANMS.m25
1 files changed, 0 insertions, 25 deletions
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