Normalized Correlation
Ältere Kommentare anzeigen
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!!!
Akzeptierte Antwort
Weitere Antworten (1)
Image Analyst
am 25 Okt. 2011
0 Stimmen
If you want normalized, then you'll have to use normxcorr2() instead of xcorr2.
1 Kommentar
Bruno Bertini
am 26 Okt. 2011
Kategorien
Mehr zu Correlation and Convolution finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!