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] is the image size. I can't seem to find the rgb values, i.e., data[[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