Effacer les filtres
Effacer les filtres

how to find mean value of alternate pixels in diagonal direction

1 vue (au cours des 30 derniers jours)
Sony
Sony le 26 Avr 2012
how to find mean value of alternate pixels in diagonal direction that is in 45 and 135 degree direction can anyone help me???

Réponses (1)

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

Catégories

En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by