Image Addition

Image Addition

Adds two images together and outputs the sum.

Inputs

image1
Input image 1
image2
Input image 2
outputType
The type of the output image.

Outputs

image
image1 + image2. In Automatic mode, the type of the output image depends on the type of the inputs as shown in the table below.

Type of output tabulated against type of image1 (columns) and image2 (rows) in Automatic output type mode.

u8 s16 s32 rgb
u8 s16 s16 s32 rgb
s16 s16 s16 s32 rgb
s32 s32 s32 s32 rgb
rgb rgb rgb rgb rgb
  • u8 = 8-bit unsigned gray
  • s16 = 16-bit signed gray
  • s32 = 32-bit signed gray
  • rgb = 32-bit RGB with 8-bit unsigned channels
  • If the output type is u8 or rgb, overflows and underflows are handled by truncation. If the output type is s16 or s32, the tool takes no measures against such errors.