Click or drag to resize
SoArithmeticValueProcessingArithmeticOperators Enumeration

Namespace: OIV.ImageViz.Engines.ArithmeticAndLogic.ArithmeticOperations
Assembly: OIV.ImageViz (in OIV.ImageViz.dll) Version: 10.12.3.0 (10.12.3.0)
Syntax
public enum ArithmeticOperators
Members
  Member nameValueDescription
ADD0

The ADD arithmetic operator adds image with a constant C.

The formula is:

Remarks:

  • Overflows may occur.

  • Be careful with negative values and the way they are visualized.

SUBTRACT1

The SUBTRACT arithmetic operator subtract a constant C from an image.

The formula is:

Remarks:

  • Overflows may occur.

  • The result of a subtraction between a binary image and a constant is a short integer image; this operation is not equivalent to a logical difference.

  • Be careful with negative values and the way they are visualized.

MULTIPLY2

The MULTIPLY arithmetic operator multiplies an image by a constant C.

The formula is:

Remarks:

  • Overflows may occur.

  • Be careful with negative values and the way they are visualized.

DIVIDE3

The DIVIDE arithmetic operator divides an image by a constant C.

The formula is:

Remarks:

  • Overflows may occur.

  • Be careful with negative values and the way they are visualized.

  • If then

MINIMUM4

The MINIMUM arithmetic operator computes the minimum value between an image and a constant C.

The formula is:

For binary image, the MINIMUM operator is equivalent to a logical AND.

MAXIMUM5

The MAXIMUM arithmetic operator computes the maximum value between an image and a constant C.

The formula is:

For binary image, the MAXIMUM operator is equivalent to a logical OR.

Remarks