Diff, Minus, Multiply, and Plus NodesThese four nodes composite two images based on the pixel values of two input nodes as specified in the following descriptions. These nodes do not require user modification of parameters; therefore their node panels feature an Info Tab only. The two required inputs to the Diff, Minus, Multiply, or Plus node must have the same number of channels, however, each input image can consist of from one to 10 channels.
The order in which the inputs are connected to the nodes (i.e., top or bottom) is irrelevant, with the exception of the Minus node, as described below. Diff NodeThe Diff node calculates the difference between the A and B images. The difference is the absolute value of the result of subtracting image B from image A. The Diff node accepts two inputs and performs the following computation:
Minus NodeThe Minus node subtracts the values of the B image from the values of the A image. The Minus node accepts two inputs and performs the following computation:
The Minus node is similar to the Diff node; however, the Minus node will clamp integer values at zero (floats are not clamped).
Multiply NodeThe Multiply node multiplies the values of the A image by the values of the B image. Multiply accepts two inputs and performs the following computation:
The Multiply node will clamp integer values at maximum (255 for 8-bit; 65535 for 16-bit).
Plus NodeThe Plus node adds the values of the B image to the values of the A image. The Plus node accepts two inputs and performs the following computation:
The Plus node will clamp integer values at Vmax.
|