Borrar filtros
Borrar filtros

i need code in matlab

1 visualización (últimos 30 días)
ahmad saleh
ahmad saleh el 9 de Oct. de 2015
Respondida: Image Analyst el 9 de Oct. de 2015
find the correlation coefficient between i1=pout.tif and i2=pout.tif
  2 comentarios
Walter Roberson
Walter Roberson el 9 de Oct. de 2015
pout is not a standard MATLAB class, so pout.tif is not something we would expect to have defined.
ahmad saleh
ahmad saleh el 9 de Oct. de 2015
i dont know this homework

Iniciar sesión para comentar.

Respuesta aceptada

Walter Roberson
Walter Roberson el 9 de Oct. de 2015
Your two inputs appear to be the same (unless pout.tif is a method of a class that implements randomness.) The correlation coefficient will be 1.
  1 comentario
ahmad saleh
ahmad saleh el 9 de Oct. de 2015
Thank you , but I want the code in matlab to confirm the answer

Iniciar sesión para comentar.

Más respuestas (2)

Walter Roberson
Walter Roberson el 9 de Oct. de 2015
i1 = rand(100,100);
i2 = i1;
corrcoef(i1, i2)

Image Analyst
Image Analyst el 9 de Oct. de 2015
Try this:
grayImage1 = double(imread('pout.tif'));
grayImage2 = grayImage1;
cc = corrcoef(grayImage1, grayImage2)
message = sprintf('The correlation coefficients are \n%f %f\n%f %f', cc)
helpdlg(message);

Categorías

Más información sobre Matrix Indexing 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