码迷,mamicode.com
首页 > 其他好文 > 详细

Cross-Correlation

时间:2016-06-15 10:56:18      阅读:131      评论:0      收藏:0      [点我收藏+]

标签:

参考文献:A Map Based On Laser scans without geometric interpretation

互相关方法Cross-Correlation

circular Cross-Correlation的Matlab实现

 1 % Computes the circular cross-correlation between two sequences
 2 %
 3 % a,b             the two sequences
 4 % normalize       if true, normalize in [0,1]
 5 %
 6 function c = circularCrossCorrelation(a,b,normalize)
 7 
 8 for k=1:length(a)
 9     c(k)=a*b;
10     b=[b(end),b(1:end-1)]; % circular shift
11 end
12 
13 if normalize
14     minimum = min(c);
15     maximum = max(c);
16     c = (c - minimum) / (maximum-minimum);
17 end

 

Cross-Correlation

标签:

原文地址:http://www.cnblogs.com/yhlx125/p/5586499.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!