MATLAB Answers

Finding the correlation coefficient between two images

131 views (last 30 days)
Maame Afrifa
Maame Afrifa on 9 Jul 2019
Commented: Maame Afrifa on 12 Jul 2019
Can you please help me on how to find the correlation coefficient between two images? thanks


Sign in to comment.

Answers (1)

Bjorn Gustavsson
Bjorn Gustavsson on 10 Jul 2019
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.

Sign in to answer this question.