SoArithmeticImageProcessing engine performs an arithmetic operation between two images. More...
#include <ImageViz/Engines/ArithmeticAndLogic/ArithmeticOperations/SoArithmeticImageProcessing.h>
Public Types | |
enum | ArithmeticOperator { ADD = 0, SUBTRACT = 1, MULTIPLY = 2, DIVIDE = 3, MINIMUM = 4, MAXIMUM = 5 } |
Public Member Functions | |
SoArithmeticImageProcessing () | |
Public Attributes | |
SoSFEnum | arithmeticOperator |
SoSFImageDataAdapter | inImage1 |
SoSFImageDataAdapter | inImage2 |
SoImageVizEngineOutput < SoSFImageDataAdapter, SoImageDataAdapter * > | outImage |
SoArithmeticImageFiltering performs an arithmetic operation between an image and another image.
SoArithmeticValueProcessing, SoLogicalImageProcessing, SoAbsoluteValueProcessing.
arithmeticOperator | ADD |
inImage1 | NULL |
inImage2 | NULL |
ADD |
The ADD arithmetic operator adds two images and . The formula is:
See also: SoArithmeticValueProcessing, SoLogicalImageProcessing, SoAbsoluteImageProcessing. |
SUBTRACT |
The SUBTRACT arithmetic operator subtract an image from . The formula is:
|
MULTIPLY |
The MULTIPLY arithmetic operator multiplies an image by another . The formula is:
|
DIVIDE |
The DIVIDE arithmetic operator divides an image by another . The formula is:
|
MINIMUM |
The MINIMUM arithmetic operator computes the minimum value between two images and . The formula is: For binary images, the MINIMUM operator is equivalent to a logical AND.
|
MAXIMUM |
The MAXIMUM arithmetic operator computes the maximum value between two images and . The formula is: For binary images, the MAXIMUM operator is equivalent to a logical OR.
|
SoArithmeticImageProcessing::SoArithmeticImageProcessing | ( | ) |
Constructor.
Select operator to apply.
Use enum ArithmeticOperator. Default is ADD
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.
SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter*> SoArithmeticImageProcessing::outImage |
The output image.
Default value is NULL. Supported types include: grayscale binary label color image.