Arithmetic

The resulting value for each pixel is an arithmetical operation between the input value of the source 1 and the source 2.

 Note: Overflowing pixel values resulting of an arithmetic operation (e.g. 225 + 85 = 255) are set to the maximum allowed value (255). Alternatively the pixel values are wrapped around from zero.

Rules for determining the type of the resulting image when the two source images have different types (see Image Types):

Add

R(i,j) = SRC1(i,j) + SRC2(i,j)

Subtract

R(i,j) = SRC1(i,j) - SRC2(i,j)

Multiply

R(i,j) = SRC1(i,j) * SRC2(i,j)

Divide

R(i,j) = SRC1(i,j) / SRC2(i,j)

 

See also:

Image Factory