help-octave
[Top][All Lists]
Advanced

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

Re: reading GIFs


From: mafaraxas
Subject: Re: reading GIFs
Date: Tue, 1 Jun 2010 14:05:10 -0700 (PDT)

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).
-- 
View this message in context: 
http://octave.1599824.n4.nabble.com/reading-GIFs-tp2236793p2239223.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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