CImage:Log CImage:Mod

CImage:Log10


 

The Log10 method computes the base 10 logarithm of the pixel values.

Syntax

bResult = CImage:Log10()

bullet.gif    On success, this method returns true

bullet.gif    On failure, this method returns false.

Remarks

The Log10 operation can produce a log of a negative number error if the pixel values are 0 or less. Mira traps this case and assigns a resultant value to the pixel as defined by the SetMathErrVal method.

Example

The following script loads an image from the file sPath, computes the log-10 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:Log10()

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