Jim, This might be overkill, but I recommend ImageMagick: http://www.imagemagick.org which is a free suite of tools for manipulating images. You'd want to convert to to gray format as in the command line convert yourimage.jpg yourimage.gray On Tue, Feb 25, 2014 at 2:54 PM, James Propp <jamespropp@gmail.com> wrote:
Does anyone know a way to turn black and white jpeg images into rectangular arrays of pixel-by-pixel grayscale levels?
My Mac has Adobe Photoshop CS6 and Mathematica, but I can't figure out a way to get either of them to do it.
The reason I want to do this has to do with this year's Gathering for Gardner, so I believe it (just barely) qualifies as a math-fun topic.
Jim Propp _______________________________________________ math-fun mailing list math-fun@mailman.xmission.com http://mailman.xmission.com/cgi-bin/mailman/listinfo/math-fun