[Image-SIG] Image.eval problem with math.sqrt

Alan Grosskurth alan.grosskurth at utoronto.ca
Sun Jul 13 21:55:50 EDT 2003


Hello,

I'm trying to apply a square root transformation to an image:

    in = Image.open('lena.jpeg')
    out = Image.eval(math.sqrt, in)

As far as I can see, this should work because math.sqrt is a function
that takes one argument. But I get the following error:

File "/h/45/grosskur/lib/python2.2/site-packages/PIL/Image.py", line
1634, in eval
    return image.point(args[0])
AttributeError: 'builtin_function_or_method' object has no attribute 'point'

Any help is appreciated.

Thanks,
Alan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.python.org/pipermail/image-sig/attachments/20030713/fcdc9d22/attachment.bin


More information about the Image-SIG mailing list