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

4 vues (au cours des 30 derniers jours)
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 (??)

Réponses (1)

KSSV
KSSV le 4 Oct 2021
Modifié(e) : KSSV le 4 Oct 2021
Read about ssim.
You can try:
R = regression(Img1(:),Img2(:)) ;
  4 commentaires
Abdul Gaffar
Abdul Gaffar le 6 Oct 2021
Error occured while running: R = regression(Img1(:),Img2(:)) ;
KSSV
KSSV le 6 Oct 2021
What error? You have to specify the error to help you.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Image Segmentation and Analysis dans Help Center et File Exchange

Produits


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by