This is an old revision of the document!


ArithmeticsWithTwoImages

Here, a set of arithmetic operations are described, which use exactly two objects (or images) as input. These objects can be 2D or 3D, but must both have the same dimensions and dimensionality.

These basic operators simply add/multiply/subtract the seconds input object to/with/from the first. An easy example is the multiplication of a 3D mask with a 3D map of a complex to yield a masked 3D object.

Operators Description
Add Adds the pixel/voxel values of input 1 to the corresponding pixels/voxels of input 2.
Multiply Multiplies the pixel/voxel values of input 1 to the corresponding pixels/voxels of input 2.
Subtract Subtracts the pixel/voxel values of input 2 from the corresponding pixels/voxels of input 1.

Here, the corresponding pixel/voxel values of the two input objects are compared and depending on the chosen operator, the larger (maximum) or smaller (minimum) value is forwarded into the output object.