필터 지우기
필터 지우기

how to find the average of an image set

조회 수: 1 (최근 30일)
ajith
ajith 2013년 12월 24일
편집: Azzi Abdelmalek 2013년 12월 24일
In U<25x1 cell> in each cell consists of < 105 x159 > values i need to find the average of the 25 images how would i find?

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 12월 24일
편집: Azzi Abdelmalek 2013년 12월 24일
v=0;
n=numel(U);
for k=1:numel(U)
v=v+U{k};
end
out=v/n;
%or
out=mean(reshape(cell2mat(U(:))',159,105,[]),3)'
  댓글 수: 1
Image Analyst
Image Analyst 2013년 12월 24일
If the images are uint8, be sure to cast to double or else the sum may well clip at 255.
v=v+double(U{k});

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by