필터 지우기
필터 지우기

How can I made a correlation between two images of the same size?

조회 수: 63 (최근 30일)
Biza Ferreira
Biza Ferreira 2016년 6월 28일
답변: Ranjit Shrestha 2022년 1월 31일
Hello, I have a small problem I wanted to build a table with the correlation of 10 images values all with the same size.

답변 (3개)

Muhammad Usman Saleem
Muhammad Usman Saleem 2016년 6월 28일
it is very simple to find correlation between two images of same size.
a=imread('firstimage.tif');
b=imread('secondimage.tif');
if you mean correlation coefficient, you can program manually the function or use corr2 :
corr2(a,b); % returns a scalar
try to read these links also helpful for you
https://www.mathworks.com/matlabcentral/answers/63796-correlation-between-the-two-images
  댓글 수: 1
Anand Karnam
Anand Karnam 2020년 4월 4일
I got scalar as output too. But if-loop is giving an error. The output should be between 1 and 2.

댓글을 달려면 로그인하십시오.


Biza Ferreira
Biza Ferreira 2016년 6월 29일
편집: Biza Ferreira 2016년 6월 29일
can you help me to solve this correlation problem using the expression
I have a problem in implementing this with MATLAB
  댓글 수: 1
Muhammad Usman Saleem
Muhammad Usman Saleem 2016년 6월 29일
I think it is formula for cross correlation? If yes matlab has created build in function cross2(x,y) for correlation. Read my answer above please

댓글을 달려면 로그인하십시오.


Ranjit Shrestha
Ranjit Shrestha 2022년 1월 31일
what if we have more than two images? I mean a sequence of images.

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by