how draw Image Correlation (horizontal or vertical or diagonal pixel ) in mtlab
조회 수: 3 (최근 30일)
이전 댓글 표시
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
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!