SoLogicalValueProcessing Class Reference
[Logical Operations]

ImageViz SoLogicalValueProcessing engine More...

#include <ImageViz/Engines/ArithmeticAndLogic/LogicalOperations/SoLogicalValueProcessing.h>

Inheritance diagram for SoLogicalValueProcessing:
SoImageVizEngine SoEngine SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

Public Types

enum  LogicalOperator {
  AND = 0,
  OR = 1,
  XOR = 2,
  NOR = 3,
  NAND = 4,
  NXOR = 5,
  SUB = 6
}

Public Member Functions

 SoLogicalValueProcessing ()

Public Attributes

SoSFEnum logicalOperator
SoSFImageDataAdapter inImage
SoSFInt32 operandValue
SoImageVizEngineOutput
< SoSFImageDataAdapter,
SoImageDataAdapter * > 
outImage

Detailed Description

ImageViz SoLogicalValueProcessing engine

SoLogicalValueProcessing performs a logical operation between an image and a value.

See also: SoLogicalImageProcessing, SoArithmeticValueProcessing, SoLogicalNotProcessing.

FILE FORMAT/DEFAULT


Library references: logical_andvalue logical_nandvalue logical_norvalue logical_nxorvalue logical_orvalue logical_subvalue logical_xorvalue


Member Enumeration Documentation

Enumerator:
AND 

The AND logical operator computes the logical and between an image $I_1$ and a value $C$.

On a binary image, it is equivalent to a minimum operation, as it appears in the boolean table below.

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

OR 

The OR logical operator computes the logical or between an image $I_1$ and a value $C$.

On a binary image, it is equivalent to a maximum operation as it appears in the boolean table below.

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

XOR 

The XOR logical operator is the exclusive or between an image $I_1$ and a value $C$.

NOR 

The NOR logical operator is the not or of an image $I_1$ and a value $C$.

NAND 

The NAND logical operator is the not and of an image $I_1$ and a value $C$.

NXOR 

The NXOR logical operator is the logical equivalence, i.e.

: Not of the exclusive or of an image $I_1$ and a value $C$.

SUB 

The SUB logical operator is the logical difference between an image $I_1$ and a value $C$.

Note that logical difference is the only non commutative logical operation, i.e. $I_1-C\neq C-I_1$.


Constructor & Destructor Documentation

SoLogicalValueProcessing::SoLogicalValueProcessing (  ) 

Constructor.


Member Data Documentation

The input image operand.

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

Select the operator to apply.

Use enum LogicalOperator. Default is AND

The operand value.

Default value is 4.

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 Feb 2024
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/