MATLAB Answers

Akhil krishnan

how to convert video in to image frames using matlab?

Asked by Akhil krishnan
on 7 Jan 2013

how to convert video in to image frames using matlab?

  0 Comments

Products

No products are associated with this question.

1 Answer

Answer by Lalit Patil on 7 Jan 2013
 vid=mmreader('video.avi');
 numFrames = vid.NumberOfFrames;
 n=numFrames;
 for i = 1:2:n
 frames = read(vid,i);
 imwrite(frames,['Image' int2str(i), '.jpg']);
 im(i)=image(frames);
 end

  0 Comments


Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply today