three types of correlation coefficients for an image
Show older comments
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(:)));
Accepted Answer
More Answers (1)
Ranjit Shrestha
on 31 Jan 2022
0 votes
what if we have more than two images? I mean a sequence of images.
Categories
Find more on Encryption / Cryptography in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!