On Thu, Apr 2, 2009 at 4:45 PM, Jason Grout <jason-s...@creativetrax.com> wrote: > > sageuser wrote: >> Hi, I'm new to sage. I need to test some algorithm that processes >> bitmap image file (.bmp) in sage. >> >> On input, is there any existing package that read in a .bmp file and >> returns a 2-dimensional array of RGB (or just gray level is fine)? >> >> On output, is there any package does the reverse of the above? > > > Install the PIL spkg. You can see > http://www.pythonware.com/library/pil/handbook/ for documentation. > > Jason >
You can also read *png* files easily with import pylab A = pylab.imread(DATA + 'emoryimage.png') William --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---