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

creating a video file

Asked by James on 4 Aug 2011

Hi

I have been given a number of .ras (image) files which represent each frame of a video. Named football000.ras to football450.ras

I want to create a small video using just a 10 images, for example 050 - 060.

How can I do this on matlab?

0 Comments

James

Products

No products are associated with this question.

2 Answers

Answer by Walter Roberson on 4 Aug 2011

0 Comments

Walter Roberson
Answer by James on 4 Aug 2011

Okay so I have created the variable 'imageArray' reads each .ras file.

files = dir('*.ras')
for k = 1:length(files)
  FileName = files(k).name;
  fprintf(1, 'Now reading %s\n', FileName);
  imageArray = imread(FileName);
  imshow(imageArray);  % Display image.
  drawnow; % Force display to update immediately.
end

Now how do I use this to create my movie.

1 Comment

James on 4 Aug 2011

sorry I am new to Matlab and having difficulty

James

Contact us