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

New to MATLAB?

how to convert video in to image frames using matlab?

Asked by Akhil krishnan

Akhil krishnan (view profile)

on 7 Jan 2013

how to convert video in to image frames using matlab?

0 Comments

Akhil krishnan

Akhil krishnan (view profile)

Products

No products are associated with this question.

1 Answer

Answer by Lalit Patil

Lalit Patil (view profile)

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

Lalit Patil (view profile)

Contact us