i need code in matlab
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
ahmad saleh
il 9 Ott 2015
Risposto: Image Analyst
il 9 Ott 2015
find the correlation coefficient between i1=pout.tif and i2=pout.tif
2 Commenti
Walter Roberson
il 9 Ott 2015
pout is not a standard MATLAB class, so pout.tif is not something we would expect to have defined.
Risposta accettata
Walter Roberson
il 9 Ott 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.
Più risposte (2)
Image Analyst
il 9 Ott 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);
0 Commenti
Vedere anche
Categorie
Scopri di più su Matrix Indexing in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!