how draw Image Correlation (horizontal or vertical or diagonal pixel ) in mtlab
4 views (last 30 days)
Show older comments
Hi....
how are you draw this code such as picture attached this code :![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/326921/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/326921/image.jpeg)
I=rgb2gray(im2double(P));
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));
0 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!