Finding the average frame from a video seqence.

조회 수: 4 (최근 30일)
Algorithms Analyst
Algorithms Analyst 2013년 3월 18일
답변: walid 2014년 1월 16일
HI every one
How can I find the average frames form the video sequence.
As I can compute the average image between two images like image1+image2./2.How can I find from video sequence from series of frames.
Thanks

답변 (1개)

walid
walid 2014년 1월 16일
readerobj = VideoReader('tmp.avi'); vidFrames = read(readerobj); %get number of frames numFrames = get(readerobj, 'numberOfFrames') % numFrames = size(mov,2); 53 for k = 1 : numFrames %k % numFrames mov(k).cdata = vidFrames(:,:,:,k); mov(k).colormap = []; %imshow(mov(k).cdata); end Fig1= figure ; set ( Fig1, 'position' , [40 350 readerobj.width readerobj.height]) movie ( Fig1, mov, 1, readerobj.FrameRate);
f = vidFrames(:,:,1,1)+vidFrames(:,:,1,2)+vidFrames(:,:,1,3)/3;

카테고리

Help CenterFile Exchange에서 Point Cloud Processing에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by