ArithmeticOperation

The ArithmeticOperation block performs the specified arithmetic operation on each pixel value in two input images.

    ArithmeticOperation

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

ArithmeticOperation_0

NameLabelDescriptionData TypeValid Values

operationType

Operation Type

Specifies the operation to be performed on the input images.

String

'Add'
'Subtract'
'Multiply'
'Divide'

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
1

Ports

NameTypeDescriptionIO TypeNumber

src0

explicit

input

1

src1

explicit

input

2

image

explicit

output

1

Port 4

activation

input

externalActivation