Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

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

Akhil krishnan

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

Lalit Patil

Contact us