three types of correlation coefficients for an image
8 ビュー (過去 30 日間)
古いコメントを表示
i want to find the correlation cofficients for adjacent pixels in an image. i write this code and it give 2x2 matrix, now i don't know how to get horizantal, vertical and diagonal values for any image?
a=image;
a1=a(:,1:end-1);
a2=a(:,2:end);
cor=corrcoef(double(a1(:)),double(a2(:)));
0 件のコメント
採用された回答
Thorsten
2016 年 10 月 26 日
I = im2double(imread('cameraman.tif'));
c_diag = corrcoef(I(1:end-1, 1:end-1), I(2:end, 2:end))
c_vert = corrcoef(I(1:end-1, :), I(2:end, :))
c_horz = corrcoef(I(:, 1:end-1, :), I(:, 2:end))
2 件のコメント
omar A.alghafoor
2020 年 7 月 11 日
How are you draw this options ? for solution above
c_diag,c_vert and c_horz ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/330506/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/330506/image.jpeg)
その他の回答 (1 件)
Ranjit Shrestha
2022 年 1 月 31 日
what if we have more than two images? I mean a sequence of images.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Read, Write, and Modify Image についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!