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 fragment loads an image from the file sPath, computes the exponential of all the pixels, and saves the result back to the file:

I = CImage:new()

-- 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