[英]Image average multipe frame same matrix. Matlab
I've a matrix RF = RF(512,1728). 我有一个矩阵RF = RF(512,1728)。 This matrix contain 9 images and the number of frame is equal 9, the first image considering one single frame is: RF1 = RF1(:,1:192) etc. So I'd like to average the hole matrix in order to obtain one single image.
该矩阵包含9张图像,帧数等于9,考虑一个帧的第一张图像为:RF1 = RF1(:,1:192)等。因此,我想对孔矩阵求平均值,以获得一个单张图片。 any idea?
任何想法?
Thanx in advance! 提前感谢!
Just reshape the matrix 只需重塑矩阵
allRF=reshape(RF,[512,192,9]);
and compute the mean 并计算平均值
meanRF=mean(allRF,3);
A simple, vectorized way: 一种简单的矢量化方式:
k=reshape(RF,512,192,1728/192);
mean(k,3)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.