help-octave
[Top][All Lists]
Advanced

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

Re: reading GIFs


From: Martin Helm
Subject: Re: reading GIFs
Date: Tue, 1 Jun 2010 23:39:21 +0200
User-agent: KMail/1.12.4 (Linux/2.6.31.12-0.2-desktop; KDE/4.3.5; x86_64; ; )

Am Dienstag, 1. Juni 2010 23:05:10 schrieb mafaraxas:
> The problem is that I want _all_ the frames, not just one.  I know MATLAB
>  has a feature to read all the frames in at once, giving you a 4D array.  I
>  can pass in a range of frames as well that partly works, i.e.:
> 
> img=imread('blah.gif',1:10)
> 
> gives me a 4D array for image.  But that only works if I know the image has
> (at least) 10 frames.  If it had only 9 frames, I'd get an error back with
> nothing read at all.  The problem is that if I am reading an arbitrary .gif
> in, I have no idea how many frames it has.  That is the situation I need to
> get past (in an elegant way, preferably).
> 
You can use the system command in octave to call identify from GraphicsMagick 
and parse the output, but I am afraid this is no elegant solution.

- mh



reply via email to

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