# SoArithmeticValueProcessing Class Reference [Arithmetic Operations]

SoArithmeticValueProcessing engine performs an arithmetic operation between an image and a value. More...

#include <ImageViz/Engines/ArithmeticAndLogic/ArithmeticOperations/SoArithmeticValueProcessing.h>

Inheritance diagram for SoArithmeticValueProcessing:

List of all members.

## Public Types

enum  ArithmeticOperator {
SUBTRACT = 1,
MULTIPLY = 2,
DIVIDE = 3,
MINIMUM = 4,
MAXIMUM = 5
}

## Public Member Functions

SoArithmeticValueProcessing ()

## Public Attributes

SoSFEnum arithmeticOperator
SoSFFloat operandValue
SoImageVizEngineOutput
outImage

## Detailed Description

SoArithmeticValueProcessing engine performs an arithmetic operation between an image and a value.

SoArithmeticValueProcessing performs an arithmetic operation between an image and a value.

### FILE FORMAT/DEFAULT

ArithmeticValueProcessing {  arithmeticOperator ADD inImage NULL operandValue 0.0f
}

Library references: addvalue dividevalue maximumvalue minimumvalue multiplyvalue subtractvalue

## Member Enumeration Documentation

Enumerator:
 ADD 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. SUBTRACT 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. MULTIPLY 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. DIVIDE 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 MINIMUM 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. MAXIMUM 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.

## Constructor & Destructor Documentation

 SoArithmeticValueProcessing::SoArithmeticValueProcessing ( )

Constructor.

## Member Data Documentation

Select the operator to apply.

Use enum ArithmeticOperator. Default is ADD

The input image operand.

Default value is NULL. Supported types include: grayscale binary label color image.

The operand value.

Default value is 0.0f.

The output image.

Default value is NULL. Supported types include: grayscale binary label color image.

The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 12 Sep 2022