Second-Order Difference
이전 댓글 표시
How can I find the Second-Order Difference signals in diagonal and minor diagonal of a matrix? The matrix is an image. For the horizontal and vertical I suppose this:
Dh = diff(image, 2);
Dv = diff(Image, 2 ,2);
Thanks!
답변 (1개)
bym
2011년 9월 24일
m = magic(4)
Dd = diff(diag(m),2) %diagonal
Dm = diff(diag(rot90(m)),2) %minor diagonal
댓글 수: 2
Bruno Bertini
2011년 9월 24일
bym
2011년 9월 24일
Dh and Dv look correct. I have edited Dm to add the 2 ;)
카테고리
도움말 센터 및 File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!