Info
此问题已关闭。 请重新打开它进行编辑或回答。
save results after 3d matrix neighbourhood operation
1 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(1 个)
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 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!