creating a video file

조회 수: 2 (최근 30일)
James
James 2011년 8월 4일
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?

답변 (2개)

Walter Roberson
Walter Roberson 2011년 8월 4일

James
James 2011년 8월 4일
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
James
James 2011년 8월 4일
sorry I am new to Matlab and having difficulty

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

Community Treasure Hunt

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

Start Hunting!

Translated by