[sage-edu] Image processing

2009-01-09 Thread lfmartins
I'm trying to do image processing in Sage, and so far I have been able to do something like this: import sympy.thirdparty pyglet = sympy.thirdparty.import_thirdparty('pyglet') from pyglet import image fimg = open('.jpg','rb') img = image.load('hint.jpg',fimg) w,h = img.width, img.height; w,h I d

[sage-edu] Re: Image processing

2009-01-09 Thread David Joyner
On Fri, Jan 9, 2009 at 9:11 AM, lfmartins wrote: > > I'm trying to do image processing in Sage, and so far I have been able > to do something like this: > > import sympy.thirdparty > pyglet = sympy.thirdparty.import_thirdparty('pyglet') > from pyglet import image > fimg = open('.jpg','rb') > img

[sage-edu] Re: Image processing

2009-01-09 Thread Luiz Felipe Martins
I just got pyglet to do what I want, it is pretty easy to use and well documented. Since it is already in the standard distribution, as part of sympy, would it not make sense simply making it more straightforward to import? On Fri, Jan 9, 2009 at 10:06 AM, David Joyner wrote: > > On Fri, Jan 9,