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

3 ビュー (過去 30 日間)
Abdul Gaffar
Abdul Gaffar 2021 年 10 月 4 日
コメント済み: KSSV 2021 年 10 月 6 日
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 件のコメント
Abdul Gaffar
Abdul Gaffar 2021 年 10 月 6 日
Error occured while running: R = regression(Img1(:),Img2(:)) ;
KSSV
KSSV 2021 年 10 月 6 日
What error? You have to specify the error to help you.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeImage Segmentation and Analysis についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by