how to find the average of an image set
1 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
采纳的回答
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
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 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!