help-octave
[Top][All Lists]
Advanced

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

Reading animated gifs?


From: seedpress
Subject: Reading animated gifs?
Date: Mon, 19 Apr 2010 20:49:02 -0800 (PST)

Is it possible to read AND write animated gifs in Octave by using imread and
imwrite (or any other function)? I know that Matlab's imread function is
supposed to be able to read them. But, so far, my code has failed to do it
within Octave.

My code:

g_name='example-gif-anim.gif';
out_name='example_res2.gif';
gI=double(imread(g_name, 'frames', 1))/255;
imwrite(gI,out_name);

I keep getting the following errors:

fn = example-gif-anim.gif
error: imread: invalid image file: Invalid call to __magick_read__.  Correct
usage is:

 -- Function File: M = __magick_read__(FNAME, INDEX)
 -- Function File: [M, COLORMAP] = __magick_read__(FNAME, INDEX)
 -- Function File: [M, COLORMAP, ALPHA] = __magick_read__(FNAME, INDEX)

error: called from:
error:   C:\Octave\3.2.4_gcc-4.4.0\share\octave\3.2.4\m\image\imread.m at
line 77, column 7
error: evaluating argument list element number 1
error: evaluating argument list element number 1
error:   C:\Bobs-2\Colorization\colorization\test26.m at line 4, column 3
octave-3.2.4.exe:6> animate example-gif-anim.gif
error: `animate' undefined near line 6 column 1
octave-3.2.4.exe:6>

I'm running Octave 3.2.4 for Windows MinGW32 in Vista(choke).

Obviously, if I can get the read and write functions working, I'll be
processing the images before writing. But now I'm just trying to get read to
work.

So, is reading an animated gif possible?

-- 
View this message in context: 
http://n4.nabble.com/Reading-animated-gifs-tp2016913p2016913.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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