SetFileSaveDlgTitle SetResampleParams

SetMathErrVal


The SetMathErrVal function specifies the value to be used when Mira traps a numerical error such as division by zero.

Syntax

SetMathErrVal( value )

    Thevalue argument may be passed as a number or string.

Remarks

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.

Related Topics

CImage, GetMathErrVal