<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263651</link>
    <title>MATLAB Central Newsreader - compiling images into a video</title>
    <description>Feed for thread: compiling images into a video</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Tue, 20 Oct 2009 18:33:04 -0400</pubDate>
      <title>compiling images into a video</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263651#688462</link>
      <author>Jimmy </author>
      <description>&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Hi all,&lt;br&gt;
I am wondering if there is anybody can help me convert images to a video&lt;br&gt;
I have 9 images, which you can see on &lt;a href=&quot;http://www.flickr.com/photos/43435855@N02/&quot;&gt;http://www.flickr.com/photos/43435855@N02/&lt;/a&gt; &lt;br&gt;
now I need to make an video from these nine images. &lt;br&gt;
I did some research on some commands such as movie() etc suggested by ImageAnalyst but I still don't know how to start. Can someone who has done it before or know how to do it give me a hand? &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Any help is really appreciated&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Thank you for your time</description>
    </item>
    <item>
      <pubDate>Tue, 20 Oct 2009 19:23:08 -0400</pubDate>
      <title>Re: compiling images into a video</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263651#688475</link>
      <author>Peter Webb</author>
      <description>&lt;br&gt;
These show how to use the MOVIE command in MATLAB:&lt;br&gt;
&lt;a href=&quot;http://www.rpi.edu/~holmes/NumDiffEqs/Demos/matlab.movie.info.pdf&quot;&gt;http://www.rpi.edu/~holmes/NumDiffEqs/Demos/matlab.movie.info.pdf&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://www.math.canterbury.ac.nz/~c.scarrott/MATLAB_Movies/movies.html&quot;&gt;http://www.math.canterbury.ac.nz/~c.scarrott/MATLAB_Movies/movies.html&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://www.math.uic.edu/~jan/mcs320s03/matlec6.pdf&quot;&gt;http://www.math.uic.edu/~jan/mcs320s03/matlec6.pdf&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
If you have .JPEG images, simply read them into MATLAB using IMREAD, then &lt;br&gt;
apply the techniques suggested above.&lt;br&gt;
&lt;br&gt;
&quot;Jimmy &quot; &amp;lt;testbest1@yahoo.com&amp;gt; wrote in message &lt;br&gt;
news:hbkvp0$2tu$1@fred.mathworks.com...&lt;br&gt;
&amp;gt;        Hi all,&lt;br&gt;
&amp;gt; I am wondering if there is anybody can help me convert images to a video&lt;br&gt;
&amp;gt; I have 9 images, which you can see on &lt;br&gt;
&amp;gt; &lt;a href=&quot;http://www.flickr.com/photos/43435855@N02/&quot;&gt;http://www.flickr.com/photos/43435855@N02/&lt;/a&gt;&lt;br&gt;
&amp;gt; now I need to make an video from these nine images.&lt;br&gt;
&amp;gt; I did some research on some commands such as movie() etc suggested by &lt;br&gt;
&amp;gt; ImageAnalyst but I still don't know how to start. Can someone who has done &lt;br&gt;
&amp;gt; it before or know how to do it give me a hand?&lt;br&gt;
&amp;gt;           Any help is really appreciated&lt;br&gt;
&amp;gt;            Thank you for your time </description>
    </item>
    <item>
      <pubDate>Tue, 20 Oct 2009 20:41:01 -0400</pubDate>
      <title>Re: compiling images into a video</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263651#688489</link>
      <author>Jimmy </author>
      <description>&amp;nbsp;&amp;nbsp;Thank you very much for your reply, the images are .tiff format. Does this make any &lt;br&gt;
&amp;nbsp;&amp;nbsp;difference. I'll try to read the links you've given and work it out.&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br&gt;
&lt;br&gt;
&quot;Peter Webb&quot; &amp;lt;pwebb@mathworks.com&amp;gt; wrote in message &amp;lt;hbl2ms$j96$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; These show how to use the MOVIE command in MATLAB:&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://www.rpi.edu/~holmes/NumDiffEqs/Demos/matlab.movie.info.pdf&quot;&gt;http://www.rpi.edu/~holmes/NumDiffEqs/Demos/matlab.movie.info.pdf&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://www.math.canterbury.ac.nz/~c.scarrott/MATLAB_Movies/movies.html&quot;&gt;http://www.math.canterbury.ac.nz/~c.scarrott/MATLAB_Movies/movies.html&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://www.math.uic.edu/~jan/mcs320s03/matlec6.pdf&quot;&gt;http://www.math.uic.edu/~jan/mcs320s03/matlec6.pdf&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; If you have .JPEG images, simply read them into MATLAB using IMREAD, then &lt;br&gt;
&amp;gt; apply the techniques suggested above.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &quot;Jimmy &quot; &amp;lt;testbest1@yahoo.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt; news:hbkvp0$2tu$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; &amp;gt;        Hi all,&lt;br&gt;
&amp;gt; &amp;gt; I am wondering if there is anybody can help me convert images to a video&lt;br&gt;
&amp;gt; &amp;gt; I have 9 images, which you can see on &lt;br&gt;
&amp;gt; &amp;gt; &lt;a href=&quot;http://www.flickr.com/photos/43435855@N02/&quot;&gt;http://www.flickr.com/photos/43435855@N02/&lt;/a&gt;&lt;br&gt;
&amp;gt; &amp;gt; now I need to make an video from these nine images.&lt;br&gt;
&amp;gt; &amp;gt; I did some research on some commands such as movie() etc suggested by &lt;br&gt;
&amp;gt; &amp;gt; ImageAnalyst but I still don't know how to start. Can someone who has done &lt;br&gt;
&amp;gt; &amp;gt; it before or know how to do it give me a hand?&lt;br&gt;
&amp;gt; &amp;gt;           Any help is really appreciated&lt;br&gt;
&amp;gt; &amp;gt;            Thank you for your time &lt;br&gt;
&amp;gt; </description>
    </item>
    <item>
      <pubDate>Tue, 20 Oct 2009 21:43:02 -0400</pubDate>
      <title>Re: compiling images into a video</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263651#688508</link>
      <author>Jan Simon</author>
      <description>Dear Jimmy!&lt;br&gt;
&lt;br&gt;
&amp;gt;   Thank you very much for your reply, the images are .tiff format. Does this make any &lt;br&gt;
&amp;gt;   difference. I'll try to read the links you've given and work it out.&lt;br&gt;
&lt;br&gt;
TIFF files are accepted also.&lt;br&gt;
What do you mean with &quot;video&quot;? AVI, DVD, animated GIF, a real video tape, Matlab movie object, mpeg, MOV, ... ?&lt;br&gt;
&lt;br&gt;
Kind regards, Jan</description>
    </item>
    <item>
      <pubDate>Tue, 20 Oct 2009 21:54:03 -0400</pubDate>
      <title>Re: compiling images into a video</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263651#688511</link>
      <author>Jimmy </author>
      <description>&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Hi Jan,&lt;br&gt;
I mean a simple video format such as avi which follows the sequence of the images  from image 1 to image 9.  &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Thank you&lt;br&gt;
&lt;br&gt;
&quot;Jan Simon&quot; &amp;lt;matlab.THIS_YEAR@nMINUSsimon.de&amp;gt; wrote in message &amp;lt;hblat6$k7q$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Dear Jimmy!&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;   Thank you very much for your reply, the images are .tiff format. Does this make any &lt;br&gt;
&amp;gt; &amp;gt;   difference. I'll try to read the links you've given and work it out.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; TIFF files are accepted also.&lt;br&gt;
&amp;gt; What do you mean with &quot;video&quot;? AVI, DVD, animated GIF, a real video tape, Matlab movie object, mpeg, MOV, ... ?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Kind regards, Jan</description>
    </item>
    <item>
      <pubDate>Tue, 20 Oct 2009 22:42:03 -0400</pubDate>
      <title>Re: compiling images into a video</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263651#688520</link>
      <author>Jan Simon</author>
      <description>Dear Jimmy!&lt;br&gt;
&lt;br&gt;
&amp;gt; I mean a simple video format such as avi which follows the sequence of the images  from image 1 to image 9.  &lt;br&gt;
&lt;br&gt;
There may be better solution than doing this in Matlab. Especially the AVI-encoder may not macth the optimal quality. But it works, of course:&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;% List of files (or any other trick to get the file names dynamically):&lt;br&gt;
&amp;nbsp;&amp;nbsp;ImageList = {'ImageFile1.tif', 'ImageFile2.tif', 'ImageFile3.tif', ...&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'ImageFile4.tif', 'ImageFile5.tif', 'ImageFile6.tif', ...&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'ImageFile7.tif', 'ImageFile8.tif', 'ImageFile9.tif'};&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;AVI = avifile('D:\The9Pic.avi', 'FPS', 1, 'Compression', 'none');&lt;br&gt;
&amp;nbsp;&amp;nbsp;for iImage = 1:9&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;aImage = imread(ImageList{iImage});&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AVI = addframe(AVI, aImage);&lt;br&gt;
&amp;nbsp;&amp;nbsp;end&lt;br&gt;
&amp;nbsp;&amp;nbsp;close(AVI);&lt;br&gt;
&lt;br&gt;
See help of AVIFILE for more parameters.&lt;br&gt;
This code can fail, if the TIFF is encode with CMYK colors, and a lot of further problems can appear. But for 24bit RGB images the AVI creation should work directly. Please try it.&lt;br&gt;
&lt;br&gt;
Note: WindowsXP (to be exact: MediaPlayer) has problems to play an AVI from the TEMP folder. The error message was excellent: &quot;Cannot find compressor.&quot; Moving the AVI outside the TEMP directory solved the problem immediately. Funny.&lt;br&gt;
&lt;br&gt;
Good night, Jan</description>
    </item>
    <item>
      <pubDate>Thu, 22 Oct 2009 19:36:19 -0400</pubDate>
      <title>Re: compiling images into a video</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263651#689113</link>
      <author>Jimmy </author>
      <description>&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Hi Jan, &lt;br&gt;
thank you very much for your help. Unfortunately I am getting some error which says 'not enough output arguments' when I try to run the code. And it gives error at close(AVI) as well. But thanks a lot for your try.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&quot;Jan Simon&quot; &amp;lt;matlab.THIS_YEAR@nMINUSsimon.de&amp;gt; wrote in message &amp;lt;hblebr$98k$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Dear Jimmy!&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; I mean a simple video format such as avi which follows the sequence of the images  from image 1 to image 9.  &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; There may be better solution than doing this in Matlab. Especially the AVI-encoder may not macth the optimal quality. But it works, of course:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt;   % List of files (or any other trick to get the file names dynamically):&lt;br&gt;
&amp;gt;   ImageList = {'ImageFile1.tif', 'ImageFile2.tif', 'ImageFile3.tif', ...&lt;br&gt;
&amp;gt;     'ImageFile4.tif', 'ImageFile5.tif', 'ImageFile6.tif', ...&lt;br&gt;
&amp;gt;     'ImageFile7.tif', 'ImageFile8.tif', 'ImageFile9.tif'};&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt;   AVI = avifile('D:\The9Pic.avi', 'FPS', 1, 'Compression', 'none');&lt;br&gt;
&amp;gt;   for iImage = 1:9&lt;br&gt;
&amp;gt;     aImage = imread(ImageList{iImage});&lt;br&gt;
&amp;gt;     AVI = addframe(AVI, aImage);&lt;br&gt;
&amp;gt;   end&lt;br&gt;
&amp;gt;   close(AVI);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; See help of AVIFILE for more parameters.&lt;br&gt;
&amp;gt; This code can fail, if the TIFF is encode with CMYK colors, and a lot of further problems can appear. But for 24bit RGB images the AVI creation should work directly. Please try it.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Note: WindowsXP (to be exact: MediaPlayer) has problems to play an AVI from the TEMP folder. The error message was excellent: &quot;Cannot find compressor.&quot; Moving the AVI outside the TEMP directory solved the problem immediately. Funny.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Good night, Jan</description>
    </item>
    <item>
      <pubDate>Fri, 23 Oct 2009 08:30:20 -0400</pubDate>
      <title>Re: compiling images into a video</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263651#689204</link>
      <author>Jan Simon</author>
      <description>Dear Jimmy!&lt;br&gt;
&amp;nbsp;&lt;br&gt;
&amp;gt; thank you very much for your help. Unfortunately I am getting some error which says 'not enough output arguments' when I try to run the code. And it gives error at close(AVI) as well. But thanks a lot for your try.&lt;br&gt;
&lt;br&gt;
It would be helpful if you post the complete error message and the line, where it occurs. I cannot analyse &quot;some error&quot;.&lt;br&gt;
On Matlab 6.5, 2008b, 2009a the code works (except I've inserted a typo at posting it here, but I cannot find one). Perhaps there is the same problem as with the AUDIOPLAYER object: For some Matlab version the needed command is:&lt;br&gt;
&amp;nbsp;&amp;nbsp;play(audioplayer_object)&lt;br&gt;
and for others:&lt;br&gt;
&amp;nbsp;&amp;nbsp;audioplayer_object.play.&lt;br&gt;
&lt;br&gt;
So please look in the already mentioned &quot;help avifile&quot;, where you can find an example for creating an AVI with your Matlab version.&lt;br&gt;
&lt;br&gt;
Good luck, Jan</description>
    </item>
    <item>
      <pubDate>Fri, 23 Oct 2009 09:34:19 -0400</pubDate>
      <title>Re: compiling images into a video</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263651#689221</link>
      <author>Irati Epelde</author>
      <description>&quot;Jimmy &quot; &amp;lt;testbest1@yahoo.com&amp;gt; wrote in message &amp;lt;hbqc7j$gq9$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt;       Hi Jan, &lt;br&gt;
&amp;gt; thank you very much for your help. Unfortunately I am getting some error which says 'not enough output arguments' when I try to run the code. And it gives error at close(AVI) as well. But thanks a lot for your try.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Hi Jimmy:&lt;br&gt;
&lt;br&gt;
In the last sentences try with :&lt;br&gt;
AVI=close(AVI);&lt;br&gt;
&lt;br&gt;
good luck!!!&lt;br&gt;
&lt;br&gt;
Irati.</description>
    </item>
    <item>
      <pubDate>Sat, 24 Oct 2009 19:57:00 -0400</pubDate>
      <title>Re: compiling images into a video</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263651#689503</link>
      <author>Jimmy </author>
      <description>&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Hi everyone, &lt;br&gt;
&amp;nbsp;thank you so much for your help. I managed to create a video changing the last line&lt;br&gt;
with AVI=close(AVI);. But now the quality of the video is very poor and it's impossible to recognize any object. Do you have any idea what the reason may be? &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Thank you&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br&gt;
&quot;Irati Epelde&quot; &amp;lt;irati.epelde@gmail.com&amp;gt; wrote in message &amp;lt;hbrtar$l50$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;Jimmy &quot; &amp;lt;testbest1@yahoo.com&amp;gt; wrote in message &amp;lt;hbqc7j$gq9$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt;       Hi Jan, &lt;br&gt;
&amp;gt; &amp;gt; thank you very much for your help. Unfortunately I am getting some error which says 'not enough output arguments' when I try to run the code. And it gives error at close(AVI) as well. But thanks a lot for your try.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Hi Jimmy:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; In the last sentences try with :&lt;br&gt;
&amp;gt; AVI=close(AVI);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; good luck!!!&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Irati.</description>
    </item>
    <item>
      <pubDate>Sun, 25 Oct 2009 20:45:02 -0400</pubDate>
      <title>Re: compiling images into a video</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263651#689609</link>
      <author>Jan Simon</author>
      <description>&quot;Jimmy &quot; &amp;lt;testbest1@yahoo.com&amp;gt; wrote in message &amp;lt;hbvm6c$6a$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt;        Hi everyone, &lt;br&gt;
&amp;gt;  thank you so much for your help. I managed to create a video changing the last line&lt;br&gt;
&amp;gt; with AVI=close(AVI);. But now the quality of the video is very poor and it's impossible to recognize any object. Do you have any idea what the reason may be? &lt;br&gt;
&lt;br&gt;
See the help section of AVIFILE:&lt;br&gt;
&amp;nbsp;&amp;nbsp;help avifile&lt;br&gt;
There you find a descritpion of the Quality property.&lt;br&gt;
&lt;br&gt;
If your pictures are photos, AVI files may be ok. But for animations/computer graphics my personal impression is, that AVIs are ugly! E.g. Indeo5 compressor and 90% Quality are a compromise between file size and ugly artifacts. But a simple animated GIF is nicer and smaller. I'm exporting PNGs and let ImageMagick create a nice and tiny GIF...&lt;br&gt;
&lt;br&gt;
Good luck, Jan</description>
    </item>
  </channel>
</rss>

