[Arithmetic Operations]

SoArithmeticImageProcessing engine performs an arithmetic operation between two images. More...

`#include <ImageViz/Engines/ArithmeticAndLogic/ArithmeticOperations/SoArithmeticImageProcessing.h>`

Inheritance diagram for SoArithmeticImageProcessing:

## 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.

- ArithmeticImageProcessing {

arithmeticOperator | ADD |

inImage1 | NULL |

inImage2 | NULL |

Library references: addimage divideimage maximumimage minimumimage multiplyimage subtractimage

**Enumerator:***ADD*The ADD arithmetic operator adds two images and .

The formula is:

Remarks:- Overflows may occur.
- Be careful with negative values and the way they are visualized.

See also: SoArithmeticValueProcessing, SoLogicalImageProcessing, SoAbsoluteImageProcessing.

*SUBTRACT*The SUBTRACT arithmetic operator subtract an image from .

The formula is:

Remarks:- Overflows may occur.
- The result of a subtraction between two binary images 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 another .

The formula is:

Remarks:- Overflows may occur.
- Be careful with negative values and the way they are visualized.
- Multiplying a binary image by a grayscale image is equivalent to a masking operation.

*DIVIDE*The DIVIDE arithmetic operator divides an image by another .

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 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.

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

- ImageViz/Engines/ArithmeticAndLogic/ArithmeticOperations/SoArithmeticImageProcessing.h

Copyright © Thermo Fisher Scientific All rights reserved.