Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

save results after 3d matrix neighbourhood operation

1 visualización (últimos 30 días)
Asl
Asl el 24 de Oct. de 2013
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
how can save a series of low resolution images after operation 10x10 pixels as a single pixel (eg, mean of 10x10 pixels)
for j=1:10
for k = 50:10:850;
for m = 50:10:300;
results(?,?,j) = mean(mean(Image(k:k+10,m:m+10,j)));
end
end
end
Thanks

Respuestas (1)

Andrei Bobrov
Andrei Bobrov el 24 de Oct. de 2013
Editada: Andrei Bobrov el 24 de Oct. de 2013
result = blockproc(Image,[10 10],@(x)mean(reshape(x.data,[],1,size(Image,3))));

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by