Info

この質問は閉じられています。 編集または回答するには再度開いてください。

save results after 3d matrix neighbourhood operation

2 ビュー (過去 30 日間)
Asl
Asl 2013 年 10 月 24 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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

回答 (1 件)

Andrei Bobrov
Andrei Bobrov 2013 年 10 月 24 日
編集済み: Andrei Bobrov 2013 年 10 月 24 日
result = blockproc(Image,[10 10],@(x)mean(reshape(x.data,[],1,size(Image,3))));
  1 件のコメント
Andrei Bobrov
Andrei Bobrov 2013 年 10 月 24 日
corrected

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by