Second-Order Difference
Ältere Kommentare anzeigen
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!
Antworten (1)
bym
am 24 Sep. 2011
m = magic(4)
Dd = diff(diag(m),2) %diagonal
Dm = diff(diag(rot90(m)),2) %minor diagonal
2 Kommentare
Bruno Bertini
am 24 Sep. 2011
bym
am 24 Sep. 2011
Dh and Dv look correct. I have edited Dm to add the 2 ;)
Kategorien
Mehr zu Image Processing Toolbox finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!