MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Getting pixel values from individual frames in an animated gif?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg81495] Getting pixel values from individual frames in an animated gif?
  • From: "W. Craig Carter" <ccarter at mit.edu>
  • Date: Wed, 26 Sep 2007 06:34:37 -0400 (EDT)


Hello, I'd like to get the values of index pixels from an 
animated gif.

mygraphiclist = Import["animated.gif"]
gives me a list of graphics objects.

I'm looking for the rgb values.

data[frame_] = mygraphicslist[frame_,1,2,1,1] gives me
the correct dimensions for an individual frame, i.e.,
Dimensions[data[12]] is the image size.

I can't seem to find the rgb values, i.e.,
data[12][[12,25]] is an integer, but is this an index to a 
map, or a 0-255 for R,G, or B?


W. Craig Carter
Professor of Materials Science and Engineering
MIT, Dept. of Materials Science and Engineering 13-5018  77 Massachusetts Ave, Cambridge, MA 02139-4307 USA
617-253-6048  ccarter at mit.edu http://pruffle.mit.edu/~ccarter http://pruffle.mit.edu/~ccarter/FAQS/ http://pruffle.mit.edu/~ccarter/I_do_not_use_microsoft.html


  • Prev by Date: Re: making a list using table but with different increment after
  • Next by Date: Re: Nullcline and getting "2" values for y
  • Previous by thread: Re: [Mathematica 6] Editing 3D graphics? (Editing tool for 2D only)
  • Next by thread: Re: Getting pixel values from individual frames in an animated gif?