CImage:Divx CImage:ExtractByte

CImage:Exp


The Exp method raises the base e to powers defined by the pixel values.

Syntax

bResult = CImage:Exp()

Remarks

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.

Example

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:

I = new_image()

-- create a new CImage

I:Open(sPath)

-- load the image from a file named sPath

I:Exp()

-- perform the operation

I:Save()

 

Related Topics

CImage class


Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024 Mirametrics, Inc. All Rights Reserved.