필터 지우기
필터 지우기

Extract the last frame and check the video info

조회 수: 6 (최근 30일)
Exton
Exton 2012년 10월 20일
""
obj=VideoReader('111.wmv');
a=read(obj);
frames=get(obj,'numberOfFrames');
for k = 1 : frames
I(k).cdata = a(:,:,:,k);
I(k).colormap = [];
end
implay(I)
"" 1st Question:
how i need to take out my last frame???? if i dont knw what is my frame go on
2nd Question:
how do i check ,the info of my video avi is "fileinfo=wmvinfo('111.wmv')" but mine was not avi folder

채택된 답변

Walter Roberson
Walter Roberson 2012년 10월 20일
After the loop you show, the last frame will be I(end).cdata
I do not understand what you mean about "mine was not avi folder" ?
  댓글 수: 3
Exton
Exton 2012년 10월 20일
and may i know is there any code that can give out what is the number of the last frame?? bcos i am using the last frame number to run a loop...
Walter Roberson
Walter Roberson 2012년 10월 20일
You already have an example of checking the file information:
frames=get(obj,'numberOfFrames');

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

제품

Community Treasure Hunt

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

Start Hunting!

Translated by