필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

save results after 3d matrix neighbourhood operation

조회 수: 1 (최근 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))));

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by