Normalized Correlation
显示 更早的评论
I have a vector A 1x512 and a matrix M 512 x 512. I need to value the normalized correlation between A and the ith row of the matrix M.
I think:
corr_rows = zeros(1,512);
for i=1:512
Row = A(i,:);
corr_rows(i) = corr2(A,Row);
end
Is It correct? And the normalization?
Thanks!!!
采纳的回答
更多回答(1 个)
Image Analyst
2011-10-25
0 个投票
If you want normalized, then you'll have to use normxcorr2() instead of xcorr2.
类别
在 帮助中心 和 File Exchange 中查找有关 Correlation and Convolution 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!