フィルターのクリア

i need code in matlab

1 回表示 (過去 30 日間)
ahmad saleh
ahmad saleh 2015 年 10 月 9 日
回答済み: Image Analyst 2015 年 10 月 9 日
find the correlation coefficient between i1=pout.tif and i2=pout.tif
  2 件のコメント
Walter Roberson
Walter Roberson 2015 年 10 月 9 日
pout is not a standard MATLAB class, so pout.tif is not something we would expect to have defined.
ahmad saleh
ahmad saleh 2015 年 10 月 9 日
i dont know this homework

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2015 年 10 月 9 日
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 件のコメント
ahmad saleh
ahmad saleh 2015 年 10 月 9 日
Thank you , but I want the code in matlab to confirm the answer

サインインしてコメントする。

その他の回答 (2 件)

Walter Roberson
Walter Roberson 2015 年 10 月 9 日
i1 = rand(100,100);
i2 = i1;
corrcoef(i1, i2)
  1 件のコメント
ahmad saleh
ahmad saleh 2015 年 10 月 9 日
thank you

サインインしてコメントする。


Image Analyst
Image Analyst 2015 年 10 月 9 日
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);

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by