Finding the correlation coefficient between two images
6 次查看(过去 30 天)
显示 更早的评论
Can you please help me on how to find the correlation coefficient between two images? thanks
0 个评论
回答(1 个)
Bjorn Gustavsson
2019-7-10
You should be able to get the 2 x 2 correlation matrix this way:
ImgCorr = corrcoef(double(Im1(:)),double(Im2(:)));
From that you can take element 1,2 or element 2,1 as the correlation coefficient.
HTH
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!