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!