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

조회 수: 3 (최근 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
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 CenterFile Exchange에서 Image 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