Click or drag to resize
OIV.ImageViz.Engines.ArithmeticAndLogic Namespaces

The Arithmetics Operations category contains operations between two images or between an image and a constant as addition, subtraction, multiplication, division, minimum or maximum.

Namespaces
NamespaceDescription
OIV.ImageViz.Engines.ArithmeticAndLogic.ArithmeticOperations

The Arithmetics Operations category contains operations between two images or between an image and a constant as sum, difference, blending, minimum or maximum.

OIV.ImageViz.Engines.ArithmeticAndLogic.LogicalOperations

The Logical Operations category contains logical operations between two images or between an image and a constant as union, intersection, complementary.

Remarks

Rules for Arithmetic Image Type

There are four rules governing arithmetic image types. The principle is to provide the smallest type without loss of precision.

Input value casting

In the case of OIV.ImageViz.Engines.ArithmeticAndLogic.ArithmeticOperations.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.

Basical Rule

This rule is used for addition, subtraction and division operations.

Promotion rule

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, OIV.ImageViz.Engines.EdgeDetection.Gradient.SoGradientOperatorProcessing2d and OIV.ImageViz.Engines.EdgeDetection.Gradient.SoGradientOperatorProcessing3d engines follow also this rule.

Rule for minimum operation

Rule for maximum operation