diff options
Diffstat (limited to 'SD-VBS/benchmarks/stitch/src/matlab/getANMS.m')
| -rwxr-xr-x | SD-VBS/benchmarks/stitch/src/matlab/getANMS.m | 25 |
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 @@ | |||
| 1 | function [interestPnts]=getANMS(x, y, v, r, dataDir) | ||
| 2 | %interestPnts=[x y v] | ||
| 3 | MAX_LIMIT=100000000; | ||
| 4 | C_ROBUST=0.9; | ||
| 5 | r_sq=r^2; | ||
| 6 | points=[x y v]; | ||
| 7 | [n temp]=size(v); | ||
| 8 | [srtdV srtdVIdx]=sort(v,'descend'); | ||
| 9 | srtdPnts=points(srtdVIdx,:); | ||
| 10 | |||
| 11 | interestPnts=zeros(0,3); | ||
| 12 | |||
| 13 | suppressR=ones(n,1)*MAX_LIMIT; | ||
| 14 | supId=find(suppressR>r_sq); | ||
| 15 | |||
| 16 | iter = 0; | ||
| 17 | while 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; | ||
| 25 | end | ||
