help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Displaying an animation / "movie"


From: Robert S. Weigel
Subject: Re: Displaying an animation / "movie"
Date: Tue, 02 May 2006 17:59:37 -0400
User-agent: KMail/1.8.2

In Matlab I was never satisfied with the movies created using imshow.  I 
prefered the finer-grained control of using epstk to create 1 eps file per 
frame and then png2swf [http://www.swftools.org/] after converting .eps 
to .png with the ImageMagick command line program "convert" .  Using this 
method I am able to create full-screen movies without muddled text and lines. 
(Also, if I ever want to re-create a movie when typical monitors are 
16000x12000 pixels, I just need to run a script that operates on the 
vector .eps files and change the -density parameter.)

Here is my .m and shell script I use to automate the process:

for i = 1:99
FileName=sprintf('./figures/Figure_%03d.eps');
% postscript file creation commands
end

#!/bin/bash

DEN=200

cd ./figures
for k in $(ls *.eps); do
    echo "Converting $k";
    convert -density $DENx$DEN $k $k.png;
done
png2swf -o all_X_$DEN.swf -r 12 *.png
                                                                                


On Tuesday 02 May 2006 16:46, Jeff Miller wrote:
> Hi,
> I would really like to use Octave, but there is an important feature I
> need, which so far I haven't figured out how to do:
>
> In Matlab I can do:
> for i=1:100; imshow(rand(100,100)); drawnow; end;
>
> ...and it rapidly displays a series of matrices in the same window, like an
> animated movie. In Octave, when I try this, it opens 100 ImageMagick
> windows, with each one containing a separate image.
>
> Is there a way to get the desired behavior in Octave? (or any other
> open-source numerical computation package?)
>
> Thanks for any help!
> Jeff


reply via email to

[Prev in Thread] Current Thread [Next in Thread]