[Image-SIG] Image.eval problem with math.sqrt
wmcclain at salamander.com
wmcclain at salamander.com
Sun Jul 13 18:07:37 EDT 2003
On 13 Jul 2003 16:55:46 -0400
"Alan Grosskurth" <alan.grosskurth at utoronto.ca> wrote:
> 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:
It looks like the arguments in the documentation are reversed. Should
be:
out = Image.eval(im, math.sqrt)
(BTW: "in" is a reserved word).
-Bill
--
Sattre Press In the Quarter
http://sattre-press.com/ by Robert W. Chambers
info at sattre-press.com http://itq.sattre-press.com/
More information about the Image-SIG
mailing list