How can I calculate the mean of a particular number of video frames?
이전 댓글 표시
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.
채택된 답변
추가 답변 (2개)
Youssef Khmou
2013년 10월 28일
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
pavithra g
2016년 9월 21일
0 개 추천
how to calculate the mean of 1 to 5 frames for grayscale image.
댓글 수: 1
Image Analyst
2016년 9월 21일
theMean = sum(double(frame1(:))+double(frame2(:))+double(frame3(:))+double(frame4(:))+double(frame5(:)))/5
카테고리
도움말 센터 및 File Exchange에서 Video Formats and Interfaces에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!