i need code in matlab
Ältere Kommentare anzeigen
find the correlation coefficient between i1=pout.tif and i2=pout.tif
2 Kommentare
Walter Roberson
am 9 Okt. 2015
pout is not a standard MATLAB class, so pout.tif is not something we would expect to have defined.
ahmad saleh
am 9 Okt. 2015
Akzeptierte Antwort
Weitere Antworten (2)
Walter Roberson
am 9 Okt. 2015
i1 = rand(100,100);
i2 = i1;
corrcoef(i1, i2)
1 Kommentar
ahmad saleh
am 9 Okt. 2015
Image Analyst
am 9 Okt. 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);
Kategorien
Mehr zu Logical finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!