genre | Unary |
author | Dirk Selle |
package | MeVisLab/Standard |
dll | MLBasicModules |
definition | mlBasicModules.def |
see also | Arithmetic2, SoCalculator |
keywords | absolute, negate, invert, power, add, multiply, subtract, divide, or, and, xor, image |
This module performs arithmetic operations on an image.
The output is the processed image according to the selected function and constant.
This module usually works with scalar voxel values. Only the Function modes Add, Multiply and Subtract work on any registered voxel type.
Select the arithmetic operation you want to apply to the input image. If the arithmetic operation has two operands enter a constant.
The example network demonstrates how an image can be inverted by the Arithmetic1 operator.
Defines an operation which is applied to the input image.
Values:
Title | Name | Deprecated Name | Description |
---|---|---|---|
Absolute | Absolute | The absolute valued input image is passed to the output. | |
Invert (Max-Img) | Invert | The inverted input image is passed to the output (max+min-img). | |
Power (Img^Const) | Power | The input image to the power of Constant is passed to the output. | |
Add (Const+Img) | Add | The input image increased by Constant is passed to the output. | |
Multiply (Const*Img) | Multiply | The input image multiplied by Constant is passed to the output. | |
Subtract (Const-Img) | Subtract | Constant decreased by the input image is passed to the output. | |
Divide (Const/Img) | Divide | Constant divided by the input image is passed to the output. | |
Or | Or | OR | The input image OR Constant is passed to the output. The OR operation is performed bitwise. Note: The operation is only performed on the first 32 bit of the value. |
And | And | AND | The input image AND Constant is passed to the output. The AND operation is performed bitwise. Note: The operation is only performed on the first 32 bit of the value. |
Xor | Xor | XOR | The input image XOR Constant is passed to the output. The XOR operation is performed bitwise. Note: The operation is only performed on the first 32 bit of the value. |
Log | Log | Log (log(IMG) | The natural logarithm of the input image is passed to the output. |
Exp | Exp | Exp (exp(IMG) | The exponential function of the input image is passed to the output. |