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 <wdjoy...@gmail.com> wrote:
>
> On Fri, Jan 9, 2009 at 9:11 AM, lfmartins <luizfelipe.mart...@gmail.com> 
> 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('<path omitted>.jpg','rb')
>> img = image.load('hint.jpg',fimg)
>> w,h = img.width, img.height;
>> w,h
>>
>> I don't want to display the images in Sage, just be able to manipulate
>> them (add noise, etc.)
>>
>> Is there another way, like importing pil directly?
>
>
> PIL is an optional package:
> http://www.sagemath.org/packages/optional/
> At some point I plan on working on SAGE and PIL but not
> this semester probably.
>
>
>>
>> Felipe Martins
>>
>> >
>>
>
> >
>



-- 
"The main things which seem to me important on their own account, and
not merely as means to other things, are knowledge, art, instinctive
happiness, and relations of friendship or affection."
   -Bertrand Russell

L. Felipe Martins
Department of Mathematics
Cleveland State University
luizfelipe.mart...@gmail.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-edu" group.
To post to this group, send email to sage-edu@googlegroups.com
To unsubscribe from this group, send email to 
sage-edu+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-edu?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to