help-octave
[Top][All Lists]
Advanced

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

Displaying an animation / "movie"


From: Jeff Miller
Subject: Displaying an animation / "movie"
Date: Wed, 3 May 2006 20:53:23 -0400

Robert,
Thanks for the reply. I don't really need to create a separate movie
file to replay later, I just need to be able to visualize the series
of images once... Is there a way to view images sequentially in the
same window?

I suppose I could use the approach you described to automatically save
the images to files, create a movie file, replay it, and then delete
all the files. That just seems more complicated than what I'm trying
to do. But if it's the only way...

I noticed that Gnuplot 4.1 (developmental) supports images (I only
have 4.0). That might work, but it's a gamble.

Jeff

On 5/2/06, Robert S. Weigel <address@hidden> wrote:

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
_______________________________________________
Help-octave mailing list
address@hidden
https://www.cae.wisc.edu/mailman/listinfo/help-octave




reply via email to

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