How to find the 2-D correlation coefficient between the two images, each having same pixels?

2 次查看(过去 30 天)
I have to calculate the 2-D correlation coefficient between the images img1 and img2, each having same pixels. I am doing the following:
img1 = zeros(256);
img2 = ones(256); or you can take all white image
Corr_Coeff = corr2(img1, img2)
Output: NaN (??)

回答(1 个)

KSSV
KSSV 2021-10-4
编辑:KSSV 2021-10-4
Read about ssim.
You can try:
R = regression(Img1(:),Img2(:)) ;
  4 个评论

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

产品


版本

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by