how can make video from images.......

hello........suppose i have my 50 image......how i can play these image as video..........

回答(4 个)

Image Analyst
Image Analyst 2013-1-30

3 个投票

Have you looked at the FAQ?

7 个评论

There's a new FAQ entry I added a few weeks ago: http://matlab.wikia.com/wiki/FAQ?&cb=6123#How_do_I_build_a_movie_from_individual_frames.3F. It has a full demo with all the source code.
A Video is created with just as movie not as avi or mp4
Correct. That wasn't asked. If you want to create a movie from a collection of still images and create a video file on disk, then see the attached code.
How do we cite you sir...after using the MakeMovie GUI...
Just say "Using code provided by Image Analyst on the Answers forum on the MATLAB Central web site........"
@ImageAnalyst
Have you added to a newer version of your GUI a way to add the time stamp from each photo and a title too? =)

请先登录,再进行评论。

HI, take a look at the links they sent you . As an alternative answer here is how :
Your fifty images must be labeled in order, per example in the database coil-100 , an object starts from obj1__0 until obj1__355 with step 5 .
Suppose your images are like : image1.jpg, image2.jpg,....., image50.jpg then :
Manifold=zeros(n,p,3,50); % (n,p) height and width of the image, all with same.
for x=1:50
filename=strcat('image',num2str(x),'.jpg');
Manifold(:,:,:,x)=imread(filename);
end
Next wether you create Gif file (imwrite),avifile or any other way, just follow the steps that you can find in the MAT doc .
i Hope this helps .

2 个评论

i am trying to use this approach , but i am getting error in the line ' Manifold=zeros(n,p,3,50);' . i dont know what the error is and how can i resolve it
We don't know what it is either because you forgot to paste the actual error message here.
However, you can use my code, which works.

请先登录,再进行评论。

Clay Jensen
Clay Jensen 2021-7-24

0 个投票

To do this, you need a lot of images and a high-quality video editor. Personally, I would recommend movavi's video editor https://www.movavi.com/videoeditor/ . Just drop all the images and glue them. That's all.

类别

帮助中心File Exchange 中查找有关 Matrix Indexing 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by