How can I calculate the mean of a particular number of video frames?
Ältere Kommentare anzeigen
I am doing a project on video processing.For that,at first I have completed shot detection.Now i want to select a single frame from every shot.Say,first 100 frames contains one shot.So i want to calculate the mean value of the pixels(row,column) of that 100 frames.Then I shall compare the mean value with all that 100 frames and select the frame which one have the closest value.Please help me with the code.
Akzeptierte Antwort
Weitere Antworten (2)
Youssef Khmou
am 28 Okt. 2013
hi,
if it is grayscale Video then :
[m,n,p]=size(X);
MEAN=zeros(1,p);
for x=1:p
MEAN(x)=mean(X(:,:,x));
end
1 Kommentar
Arnav
am 28 Okt. 2013
pavithra g
am 21 Sep. 2016
0 Stimmen
how to calculate the mean of 1 to 5 frames for grayscale image.
1 Kommentar
Image Analyst
am 21 Sep. 2016
theMean = sum(double(frame1(:))+double(frame2(:))+double(frame3(:))+double(frame4(:))+double(frame5(:)))/5
Kategorien
Mehr zu Video Formats and Interfaces finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!