CImage:Exp
The Exp method raises the base e to powers defined by the pixel values.
bResult = CImage:Exp() |
The Exp operation can overflow quickly if the pixel values are large numbers. For example, if a pixel has value 100, then e^100 is a very large number.
The following script loads an image from the file sPath, computes the exponential of all the pixels, and saves the result back to the file:
|
-- create a new CImage |
|
-- load the image from a file named sPath |
|
-- perform the operation |
|
|
Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.