[Image-SIG] Raster Calculation: Script Error
abel deuring
adeuring at gmx.net
Fri Apr 3 18:18:44 CEST 2009
On 03.04.2009 17:54, Fredrik Lundh wrote:
> On Fri, Apr 3, 2009 at 5:10 PM, abel deuring <adeuring at gmx.net> wrote:
>
>> Use either:
>>
>> from math import cos
>> x = cos(1)
>>
>> or
>>
>> import math
>> x = math.cos(1)
>
> That doesn't work with ImageMath.eval - it provides its own
> environment (including the names you pass in).
whoops... right, I missed the ImageMath.eval stuff completely.
<note target="self">Deuring, read these questions more carefully!</note>
Abel
>
> It does the trick if you're using "point" instead, though.
>
> </F>
>
More information about the Image-SIG
mailing list