Azzera filtri
Azzera filtri

how to find mean value of alternate pixels in diagonal direction

1 visualizzazione (ultimi 30 giorni)
how to find mean value of alternate pixels in diagonal direction that is in 45 and 135 degree direction can anyone help me???

Risposte (1)

Sean de Wolski
Sean de Wolski il 26 Apr 2012
x = magic(5);
xd = diag(x);
mean(xd(1:2:end))

Categorie

Scopri di più su Image Processing Toolbox in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by