Developing a AVI movie based on multi-component figures

I am using MATLAB to create a series of images each containing two subplots where one subplot is an image and the other is a 3-D plot. I would like to be able to save these figures individually WITHOUT compression and then make the series into a MATLAB movie and subsequent AVI file.
I have attempted a multitude of commands for each, but currently I have found that using the saveas command to save the images individually and then loading them back into an array to feed to the immovie command has worked the best. I have tried to just go directly to the movie command using getframe but it cannot handle a figure with both an image and a plot. Using the saveas and immovie command seems to work but I am having two issues.
The first is that the images are compressed when saving as an TIFF or JPEG file in the saveas command. I don't mind saving as a BMP, so they are not compressed but then immovie does not work. I have tried other commands to write the figures such as imwrite, but again I don't think this command likes having figures that have both an image and a plot.
The second is that even using the compressed images to write to the immovie command and then to the movie2avi command I cannot change the frames per second. Again I know you can change the frames per second with the movie command but then I cannot use my multi-component figures. I also realize you can change the frames per second when playing the movie using implay(movie) but I need to do it beforehand so that the adequate frames per second gets transferred to the avi and the video doesn't commence in the blink of an eye.
In summary my questions are:
1) Is there a way to use the saveas command and not get compressed images using JPEG or TIFF?
2) Using the immovie command, how can you change the frames per second before creating the movie so that when it is fed to movie2avi it doesn't commence at lightning speed
Any help would be greatly appreciated!!
Thanks for your time

 Accepted Answer

More Answers (0)

Categories

Products

Community Treasure Hunt

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

Start Hunting!