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

83 visualizaciones (últimos 30 días)
Biza Ferreira
Biza Ferreira el 28 de Jun. de 2016
Respondida: Ranjit Shrestha el 31 de En. de 2022
Hello, I have a small problem I wanted to build a table with the correlation of 10 images values all with the same size.

Respuestas (3)

Muhammad Usman Saleem
Muhammad Usman Saleem el 28 de Jun. de 2016
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 comentario
Anand Karnam
Anand Karnam el 4 de Abr. de 2020
I got scalar as output too. But if-loop is giving an error. The output should be between 1 and 2.

Iniciar sesión para comentar.


Biza Ferreira
Biza Ferreira el 29 de Jun. de 2016
Editada: Biza Ferreira el 29 de Jun. de 2016
can you help me to solve this correlation problem using the expression
I have a problem in implementing this with MATLAB
  1 comentario
Muhammad Usman Saleem
Muhammad Usman Saleem el 29 de Jun. de 2016
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

Iniciar sesión para comentar.


Ranjit Shrestha
Ranjit Shrestha el 31 de En. de 2022
what if we have more than two images? I mean a sequence of images.

Categorías

Más información sobre Convert Image Type en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by