From 25d94aa8aabb8ac3e8bbea0bc439ea6148444cc8 Mon Sep 17 00:00:00 2001 From: leochanj Date: Wed, 21 Oct 2020 01:52:54 -0400 Subject: debug libextra and remove matlab --- SD-VBS/benchmarks/stitch/src/matlab/getANMS.m | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100755 SD-VBS/benchmarks/stitch/src/matlab/getANMS.m (limited to 'SD-VBS/benchmarks/stitch/src/matlab/getANMS.m') 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 @@ -function [interestPnts]=getANMS(x, y, v, r, dataDir) -%interestPnts=[x y v] -MAX_LIMIT=100000000; -C_ROBUST=0.9; -r_sq=r^2; -points=[x y v]; -[n temp]=size(v); -[srtdV srtdVIdx]=sort(v,'descend'); -srtdPnts=points(srtdVIdx,:); - -interestPnts=zeros(0,3); - -suppressR=ones(n,1)*MAX_LIMIT; -supId=find(suppressR>r_sq); - -iter = 0; -while length(supId)>0 - interestPnts=[interestPnts; srtdPnts(supId(1),:)]; - srtdPnts=srtdPnts(supId(2:end),:); - suppressR=suppressR(supId(2:end),:); - - 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); - supId=find(suppressR>r_sq); - iter = iter + 1; -end -- cgit v1.2.2