Package com.openinventor.imageviz.engines.arithmeticandlogic
There are four rules governing arithmetic image types. The principle is to provide the smallest type without loss of precision.
In the case of SoArithmeticValueProcessing
, the type of the output image is deducted from the type of the input image and the smallest type able to contain the inputValue without loss of precision.
This rule is used for addition, subtraction and division operations.
This rule is used for multiplication operation. Please, note that some operators with a single input also use this rule taking the same type for both headers row and column. For instance, SoGradientOperatorProcessing2d
and SoGradientOperatorProcessing3d
engines follow also this rule.