Borrar filtros
Borrar filtros

how to find mean value of alternate pixels in diagonal direction

1 visualización (últimos 30 días)
Sony
Sony el 26 de Abr. de 2012
how to find mean value of alternate pixels in diagonal direction that is in 45 and 135 degree direction can anyone help me???

Respuestas (1)

Sean de Wolski
Sean de Wolski el 26 de Abr. de 2012
x = magic(5);
xd = diag(x);
mean(xd(1:2:end))

Categorías

Más información sobre Image Processing Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by