SetMathErrVal
The SetMathErrVal function specifies the value to be used when Mira traps a numerical error such as division by zero.
SetMathErrVal( value )
Thevalue argument may be passed as a number or string.
For illegal math operations such as divide by 0, log 0, or 0^0 (0 to the 0 power), Mira sets the resulting pixel value to a specified math error value. Mira does not use this value in the calculation, but simply sets the resulting pixel value to value whenever the error occurs.
Passing the value argument as a string permits the use of RGB quantities, such as (255,100,0), to be used for color images. If you set the error value to an RGB value and then process a non RGB image, Mira converts the error value to a gray equivalent as described in Visual Response Equivalent Gray.
Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.