SoArithmeticValueProcessing Class Reference
[Arithmetic Operations]

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

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

Inheritance diagram for SoArithmeticValueProcessing:
SoImageVizEngine SoEngine SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

Public Types

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

Public Member Functions

 SoArithmeticValueProcessing ()

Public Attributes

SoSFEnum arithmeticOperator
SoSFImageDataAdapter inImage
SoSFFloat operandValue
SoImageVizEngineOutput
< SoSFImageDataAdapter,
SoImageDataAdapter * > 
outImage

Detailed Description

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

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

SEE ALSO

SoArithmeticImageProcessing, SoLogicalValueProcessing, SoAbsoluteValueProcessing.

FILE FORMAT/DEFAULT


Library references: addvalue dividevalue maximumvalue minimumvalue multiplyvalue subtractvalue


Member Enumeration Documentation

Enumerator:
ADD 

The ADD arithmetic operator adds image $I_1$ with a constant C.

The formula is:

$O(n,m)=I_1(n,m)+C$
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:

$O(n,m)=I_1(n,m)-C$
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 $I_1$ by a constant C.

The formula is:

$O(n,m)=I_1(n,m) \times C$
Remarks:

  • Overflows may occur.
  • Be careful with negative values and the way they are visualized.
DIVIDE 

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

The formula is:

$O(n,m)=I_1(n,m)\div C$
Remarks:

  • Overflows may occur.
  • Be careful with negative values and the way they are visualized.
  • If $C=0$ then $O(n,m)=I_1(n,m)$
MINIMUM 

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

The formula is: $O(n,m)=\min\left\{I_1(n,m),C\right\}$

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

\[ \begin{array}{|c|c|c|} \hline I_1 & C & I_1 ~ \Lambda ~ C\\ \hline 1 & 1 & 1 \\ 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 0 \\ \hline \end{array} \]

MAXIMUM 

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

The formula is: $O(n,m)=\max\left\{I_1(n,m),C\right\}$

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

\[ \begin{array}{|c|c|c|} \hline I_1 & C & I_1 ~ \Delta ~ C\\ \hline 1 & 1 & 1 \\ 1 & 0 & 1 \\ 0 & 1 & 1 \\ 0 & 0 & 0 \\ \hline \end{array} \]


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 4 Sep 2023
Copyright © Thermo Fisher Scientific All rights reserved.
https://www.openinventor.com/