필터 지우기
필터 지우기

how do i extract the frame and shw it out with imshow (HELP)

조회 수: 1 (최근 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)
""
111.wmv is my video(in this video got 148 frames) and what i need is extract all the frame to compare example"Frame1-frame2"(but how do i extract the frame 1 and frame 2... then the other)

채택된 답변

divya agarwal
divya agarwal 2012년 10월 20일
a=read(obj,1); this will give you the first frame,when instead of '1' you will write '2' you will get the second frame and so on.
  댓글 수: 1
Exton
Exton 2012년 10월 20일
편집: Exton 2012년 10월 20일
how do i get the last frame so that i can use a for loop to find the different

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

추가 답변 (0개)

제품

Community Treasure Hunt

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

Start Hunting!

Translated by