ArithmeticOperation
The ArithmeticOperation block performs the specified arithmetic operation on each pixel value in two input images.
Library
ComputerVision/Images/Operations
Description
The operation can be add, subtract, multiply, or divide. These operations are saturated operations. That is, if the operation produces a pixel value greater than 255, it is limited to 255; similarly, if the operation produces a pixel value less than 0, it is limited to 0.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
operationType | Operation Type | Specifies the operation to be performed on the input images. | String | 'Add' |
externalActivation | External activation | This parameter defines if the block receives or inherits an external activation. When External Activation is used, an additional activation port is added to the block. Default is OFF. | Number | 0 |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
src0 | explicit | input | 1 | |
src1 | explicit | input | 2 | |
image | explicit | output | 1 | |
Port 4 | activation | input | externalActivation |