简体   繁体   中英

Image average multipe frame same matrix. Matlab

I've a matrix 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. 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)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM