SoLogicalImageProcessing Class Reference
[Logical Operations]

ImageViz SoLogicalImageProcessing engine performs logical operations between two image. More...

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

Inheritance diagram for SoLogicalImageProcessing:
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

 SoLogicalImageProcessing ()

Public Attributes

SoSFEnum logicalOperator
SoSFImageDataAdapter inImage1
SoSFImageDataAdapter inImage2
SoImageVizEngineOutput
< SoSFImageDataAdapter,
SoImageDataAdapter * > 
outImage

Detailed Description

ImageViz SoLogicalImageProcessing engine performs logical operations between two image.

SoLogicalImageProcessing performs a logical operation between an image and another image.

For an introduction to logical operations, see section Logical Operations.

See also: SoLogicalValueProcessing, SoArithmeticImageProcessing, SoLogicalNotProcessing.

FILE FORMAT/DEFAULT


Library references: logical_andimage logical_nandimage logical_norimage logical_nxorimage logical_orimage logical_subimage logical_xorimage

See related examples:

InteractiveFloodFill


Member Enumeration Documentation

Enumerator:
AND 

The AND logical operator computes the logical and between two images $I_1$ and $I_2$.

On a binary image, it is equivalent to a minimum operation, or to the intersection of two sets, as it appears in the boolean table and the figure below.

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

logical_and_image01.png

Intersection of two images demonstrating the logical AND

OR 

The OR logical operator computes the logical or between two images $I_1$ and $I_2$.

On a binary image, it is equivalent to a maximum operation, or to the union of two sets, as it appears in the boolean table of the figure.

logical_or_image01.png

The logical OR operation

XOR 

The XOR logical operator is the exclusive or between two images $I_1$ and $I_2$ as described on the figure below.

logical_xor_image01.png

The logical XOR operation

NOR 

The NOR logical operator is the not or of two images $I_1$ and $I_2$.

NAND 

The NAND logical operator is the not and of two images $I_1$ and $I_2$.

NXOR 

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

: Not of the exclusive or of two images $I_1$ and $I_2$.\ The logical equivalence of two binary sets A and B is described in the boolean table of the figure below.

logical_nxor_image01.png

The logical NXOR operation

SUB 

The SUB logical operator is the logical difference between images $I_1$ and $I_2$ as described on the figure below.

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

logical_sub_image01.png

The logical SUB operation


Constructor & Destructor Documentation

SoLogicalImageProcessing::SoLogicalImageProcessing (  ) 

Constructor.


Member Data Documentation

The 1st input image.

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

The 2nd input image.

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

Select the operator to apply.

Use enum LogicalOperator. Default is AND

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