ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> image-sig
image-sig
[Image-SIG] Image.eval problem with math.sqrt
by Alan Grosskurth other posts by this author
Jul 13 2003 8:55PM messages near this date
Re: [Image-SIG] Re: Image.eval problem with math.sqrt | Re: [Image-SIG] Image.eval problem with math.sqrt
--GvXjxJ+pjyke8COw
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

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

--GvXjxJ+pjyke8COw
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/EcdS6wHgwp2ZqyARAmEOAKCgeZg3GyDiipcN36GAdRMk2UceCwCgmZUH
I9y/G5jc0lNfA+voxHA7rvw=
=OA2+
-----END PGP SIGNATURE-----

--GvXjxJ+pjyke8COw--
Attachments:
unknown1

Thread:
Alan Grosskurth


Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved