How do I generate a video from images that I create on MATLAB?
Mostra commenti meno recenti
I am generating a missile simulation input for which I created a sequence of images using an iterative for loop. The code starts with a single aerial image using which I have generated a sequence of images that make it seem like the image is rotating. I used campan, camzoom, camva and drawnow to consecutively display the sequence of images when I run the code. It looks like a video of an aerial image rotating when I run the code. My problem is, that I need to extract a video from these generated images, and save it on my computer to use as input for the missile simulator. Please help.
Risposta accettata
Più risposte (1)
Stalin Samuel
il 11 Giu 2017
0 voti
5 Commenti
Amulya Kallakuri
il 13 Giu 2017
Sara Gaviano
il 13 Dic 2017
Hi, Have you found a way to create the video without saving the images on your computer? I have the same problem, but I cannot find a solution.
Thank you
Image Analyst
il 13 Dic 2017
Yes they did. The code I attached in my answer does that. Did you just not "find" my Answer above? Where in there do you see that it's saving individual frames to disk before constructing the movie? It does not (though it could be altered to do that if someone wanted to).
Sumera Yamin
il 16 Nov 2019
hi, i saw the FAQ in the link mentioned in yor answer, but i have a question about your code. is their any way to control timing of the video/transition time of images? e.g i want to use a small number of images 5-10 to make a 5-10 seconds animation, when i used your code, it gave me an animation for only 1 second, which was not what i wanted. thanks in adance for your help
Image Analyst
il 17 Nov 2019
There is a property of the video object created by VideoWriter that is FrameRate. Set it to the rate you want.
Categorie
Scopri di più su Audio and Video Data in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!